Stream: implementers
Topic: FHIR PATCH interaction
Kenneth Myhra (Aug 18 2021 at 09:45):
Hey,
I have a question regarding the FHIR PATCH interaction. For choice data types should we suffix the name part with the data type like shown in the resource example? See the part with name="timeDateTime"
. My guess is that it should actually be just name="time"
since the data type would be revealed by the value attribute.
Could anyone shed som light on this? The FHIR PATCH documentation seems to lack information about choice data types (https://www.hl7.org/fhir/fhirpatch.html)
{
"resourceType": "Parameters",
"parameter": [{
"name": "operation",
"part": [{
"name": "type",
"valueCode": "add"
}, {
"name": "path",
"valueString": "Specimen"
}, {
"name": "name",
"valueString": "processing"
}, {
"name": "value",
"part": [{
"name": "description",
"valueString": "testProcessing"
}, {
"name": "timeDateTime",
"valueDateTime": "2021-08-18T11:32:55.6462761+02:00"
}
]
}
]
}
]
}
Lee Surprenant (Aug 18 2021 at 12:03):
Yes, you'd want time
and not timeDateTime
. Consistent with https://www.hl7.org/fhir/fhirpath.html#polymorphism
Kenneth Myhra (Aug 18 2021 at 15:39):
Thanks for the fast reply, Lee :+1:
Kenneth Myhra (Aug 23 2021 at 19:38):
Added a change request to clarify how to reference choice values in a FhirPatch: https://jira.hl7.org/browse/FHIR-33232
Last updated: Apr 12 2022 at 19:14 UTC