FHIR Chat · Composite input parameters to operation: client and provider · hapi

Stream: hapi

Topic: Composite input parameters to operation: client and provider


view this post on Zulip Jim Steel (Mar 23 2021 at 01:15):

The $translate operation (https://www.hl7.org/fhir/conceptmap-operation-translate.html) has a parameter dependency that breaks down into a dependency.element uri and a dependency.concept CodeableConcept. I'm trying to work out how to use this, both in the HAPI client making the $translate request, and in a provider method to receive the request.

view this post on Zulip Jim Steel (Mar 23 2021 at 01:16):

My expectation is that the input Parameters will look something like this:
{
"resourceType": "Parameters",
"parameter": [
{
"name": "dependency",
"part": [
{
"name": "element",
"valueUri": "http://my-dependency"
},
{
"name": "concept",
"valueCodeableConcept": {
"coding": [
{
"system": "http://my-system",
"code": "my-code"
}
]
}
}
]
}
]
}

view this post on Zulip Jim Steel (Mar 23 2021 at 01:17):

And that I can build this with the client along the lines of...
ParametersParameterComponent dependencyParam = inParams.addParameter();
dependencyParam.setName("dependency");
dependencyParam.addPart().setName("element").setValue(new UriType("http://dependency"));
dependencyParam.addPart().setName("concept").setValue(new CodeableConcept(new Coding("http://hl7.org/fhir/procedure-status", "dependCode", null)));

view this post on Zulip Jim Steel (Mar 23 2021 at 01:17):

(Please do jump in and tell me that's wrong if you think it is)

view this post on Zulip Jim Steel (Mar 23 2021 at 01:18):

However, I'm stumped about how I can build a server provider that can accept these. Any suggestions?


Last updated: Apr 12 2022 at 19:14 UTC