FHIR Chat · ValueSet filter on Graham's test server · implementers

Stream: implementers

Topic: ValueSet filter on Graham's test server


view this post on Zulip ravi.kuchi (Aug 19 2017 at 22:34):

Hi Graham, I was trying to understand the filter feature of ValueSet on your test server, I was going through the provided examples and posted a ValueSet as below: {
"resourceType": "ValueSet",
"id": "13",
"meta": {
"versionId": "4",
"lastUpdated": "2017-08-19T22:21:43Z"
},
"url": "http://hl7.org/fhir/ValueSet/inactive",
"name": "Example-inactive",
"title": "Example with inactive codes",
"status": "draft",
"description": "HL7 v3 ActMood Prdicate codes, including inactive codes",
"compose": {
"inactive": true,
"include": [{
"system": "http://hl7.org/fhir/v3/ActMood",
"filter": [{
"property": "concept",
"op": "descendent-of",
"value": "_ActMoodPredicate"
}]
}]
}
} I was expecting the following output when I use the $expand operation: {
"resourceType": "ValueSet",
"id": "inactive",

"url": "http://hl7.org/fhir/ValueSet/inactive",
"name": "Example-inactive",
"title": "Example with inactive codes",
"status": "draft",
"description": "HL7 v3 ActMood Prdicate codes, including inactive codes",
"compose": {
    "inactive": true,
    "include": [{
        "system": "http://hl7.org/fhir/v3/ActMood",
        "filter": [{
            "property": "concept",
            "op": "descendent-of",
            "value": "_ActMoodPredicate"
        }]
    }]
},
"expansion": {
    "identifier": "urn:uuid:46c00b3f-003a-4f31-9d4b-ea2de58b2a99",
    "timestamp": "2017-02-26T10:00:00Z",
    "contains": [{
            "system": "http://hl7.org/fhir/v3/ActMood",
            "inactive": true,
            "code": "CRT",
            "display": "criterion"
        },
        {
            "system": "http://hl7.org/fhir/v3/ActMood",
            "code": "EXPEC",
            "display": "expectation",
            "contains": [{
                    "system": "http://hl7.org/fhir/v3/ActMood",
                    "code": "GOL",
                    "display": "goal"
                },
                {
                    "system": "http://hl7.org/fhir/v3/ActMood",
                    "code": "RSK",
                    "display": "risk"
                }
            ]
        },
        {
            "system": "http://hl7.org/fhir/v3/ActMood",
            "code": "OPT",
            "display": "option"
        }
    ]
}

} However, I get the following error: {
"resourceType" : "OperationOutcome","text" : {"status" : "generated","div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>The filter "concept descendent-of _ActMoodPredicate" was not understood in the context of http://hl7.org/fhir/v3/ActMood</p></div>"},"issue" : [{"severity" : "error","details" : {"text" : "The filter \"concept descendent-of _ActMoodPredicate\" was not understood in the context of http://hl7.org/fhir/v3/ActMood"},"diagnostics" : "(00000000014D6D42){FHIRServer.exe} [00000000018D7D42] FHIRValueSetExpander.TFHIRValueSetExpander.processCodes + $1132\r\n(00000000000421AB){FHIRServer.exe} [00000000004431AB] System.SysUtils.RaiseExceptObject + $2B\r\n(0000000000010166){FHIRServer.exe} [0000000000411166] System.@RaiseAtExcept + $E6\r\n(00000000000101B1){FHIRServer.exe} [00000000004111B1] System.@RaiseExcept + $11\r\n(00000000014D6D42){FHIRServer.exe} [00000000018D7D42] FHIRValueSetExpander.TFHIRValueSetExpander.processCodes + $1132\r\n(00000000014D4D35){FHIRServer.exe} [00000000018D5D35] FHIRValueSetExpander.TFHIRValueSetExpander.handleCompose + $C5\r\n(00000000014D3DDF){FHIRServer.exe} [00000000018D4DDF] FHIRValueSetExpander.TFHIRValueSetExpander.expand + $83F\r\n(00000000014E02E9){FHIRServer.exe} [00000000018E12E9] TerminologyServer.TTerminologyServer.expandVS + $519\r\n(00000000014DFBE8){FHIRServer.exe} [00000000018E0BE8] TerminologyServer.TTerminologyServer.expandVS + $A8\r\n(00000000018FC830){FHIRServer.exe} [0000000001CFD830] FHIRNativeStorage.TFhirExpandValueSetOperation.Execute + $820\r\n(00000000018EBD06){FHIRServer.exe} [0000000001CECD06] FHIRNativeStorage.TFHIRNativeOperationEngine.ExecuteOperation + $106\r\n(00000000016C2B8A){FHIRServer.exe} [0000000001AC3B8A] FHIRStorageService.TFHIROperationEngine.Execute + $36A\r\n(00000000017BAD5B){FHIRServer.exe} [0000000001BBBD5B] FHIRRestServer.TFhirWebServer.ProcessRequest + $12B\r\n(00000000017AFBC5){FHIRServer.exe} [0000000001BB0BC5] FHIRRestServer.TFhirWebServer.HandleRequest + $1165\r\n(00000000017AB9C6){FHIRServer.exe} [0000000001BAC9C6] FHIRRestServer.TFhirWebServer.PlainRequest + $996\r\n(00000000014C9F19){FHIRServer.exe} [00000000018CAF19] IdCustomHTTPServer.TIdCustomHTTPServer.DoCommandGet + $49\r\n(00000000014CB895){FHIRServer.exe} [00000000018CC895] IdCustomHTTPServer.TIdCustomHTTPServer.DoExecute + $AC5\r\n(0000000000243B99){FHIRServer.exe} [0000000000644B99] IdContext.TIdContext.Run + $29\r\n(0000000000241BBA){FHIRServer.exe} [0000000000642BBA] IdTask.TIdTask.DoRun + $1A\r\n(0000000000245AFB){FHIRServer.exe} [0000000000646AFB] IdThread.TIdThreadWithTask.Run + $1B\r\n(0000000000244E1A){FHIRServer.exe} [0000000000645E1A] IdThread.TIdThread.Execute + $EA\r\n(000000000011DA83){FHIRServer.exe} [000000000051EA83] System.Classes.ThreadProc + $43\r\n(0000000000010D0B){FHIRServer.exe} [0000000000411D0B] System.ThreadWrapper + $3B\r\n(0000000000007364){KERNEL32.DLL} [00007FFCCAD18364] BaseThreadInitThunk + $14\r\n(0000000000066091){ntdll.dll } [00007FFCCD2A7091] RtlUserThreadStart + $21\r\n"}]}

view this post on Zulip ravi.kuchi (Aug 19 2017 at 22:36):

I am not sure if I this is an error on the server implementation or misuse of the filter operation, if you can provide a sample of codesystem with properties and the right usage of ValueSet with a filter on the properties defined it would help the users implement them correctly. Thanks

view this post on Zulip Grahame Grieve (Aug 21 2017 at 06:57):

looks like I have work to do on my server


Last updated: Apr 12 2022 at 19:14 UTC