Stream: implementers
Topic: parameters
Silvia Lillie (Mar 13 2018 at 09:23):
What is the correct way to code parameters that have (1..*) cardinality in an operation definition?
For example:
I want to search for available Slots across multiple HealthcareServices.
My operation takes in input one or more HealthcareService IDs.
I have been experimenting with the following two options:
{ "parameter": [ { "name": "serviceID", "value": "357" }, { "name": "serviceID", "value": "150" } ]
and
{ "parameter": [ { "name": "serviceIDs", "value": [357,150] } ]
What is the correct syntax?
Vadim Peretokin (Mar 13 2018 at 09:36):
It'd be the former - check this example out: http://hl7.org/fhir/parameters-example.json.html
Yunwei Wang (Mar 13 2018 at 13:18):
Parameter.value[x] is 0..1. So you cannot use array here.
Last updated: Apr 12 2022 at 19:14 UTC