FHIR Chat · CodeSystem Lookup · implementers

Stream: implementers

Topic: CodeSystem Lookup


view this post on Zulip Kin Dia (May 15 2020 at 12:56):

Hi
I am trying to run CodeSystem Lookup operation . I want it to return following properties code, display, designation. But it only returns display, designation only not the code value . Am I missing something
https://stu3.ontoserver.csiro.au/fhir/CodeSystem/$lookup?code=12915011000036104&system=http://snomed.info/sct&property=code&property=display&property=designation

KIn

view this post on Zulip Yunwei Wang (May 16 2020 at 02:50):

because code is not part of the output parameter. http://build.fhir.org/codesystem-operation-lookup.html
Also since you already know the code when calling this operation, why do you need the code as returned parameters?

view this post on Zulip Kin Dia (May 16 2020 at 09:47):

Hi Yunwei
What I am trying to do is I want to retrieve multiple lookup codes using batch processing. Something like below. If it doesn't return the code I have to match it blindly which is not the best way to do.
{
"type" : "batch",
"resourceType" : "Bundle",
"entry" : [
{
"resource" : {
"resourceType": "Parameters",
"parameter": [
{
"name": "code",
"valueCode": "12915011000036104"
},
{
"name": "system",
"valueUri": "http://snomed.info/sct"
},
{
"name": "property",
"valueString": "display"
},
{
"name": "property",
"valueCode": "code"
},
{
"name": "property",
"valueString": "designation"
}
]
},
"request" : {
"method" : "POST",
"url" : "CodeSystem/$lookup"
}
},
{
"resource" : {
"resourceType": "Parameters",
"parameter": [
{
"name": "code",
"valueCode": "12915011000036106"
},
{
"name": "system",
"valueUri": "http://snomed.info/sct"
},
{
"name": "property",
"valueString": "display"
},
{
"name": "property",
"valueCode": "code"
},
{
"name": "property",
"valueString": "designation"
}
]
},
"request" : {
"method" : "POST",
"url" : "CodeSystem/$lookup"
}
}
]
}

view this post on Zulip Grahame Grieve (May 16 2020 at 21:17):

it's a requirement of batching that each entry in the request has a matching entry in the response, in the same order

view this post on Zulip Yunwei Wang (May 17 2020 at 02:11):

http://build.fhir.org/http.html#transaction-response

view this post on Zulip Kin Dia (May 17 2020 at 14:31):

Thank you very much for explanation @Yunwei Wang and @Grahame Grieve


Last updated: Apr 12 2022 at 19:14 UTC