FHIR Chat · 0..* type if present, can also be in the form of an object? · implementers

Stream: implementers

Topic: 0..* type if present, can also be in the form of an object?


view this post on Zulip Saumitra Dobhal (Feb 12 2021 at 09:14):

For DiagnosticReport Resource, "specimen" field is defined as 0..*.
However, in one of the provided examples on the HL7 website it is provided as -

"specimen": {
"reference": "Specimen/urine",
"display": "Urine Sample"
}
Shouldn't this be -
"specimen": [{
"reference": "Specimen/urine",
"display": "Urine Sample"
}]
@Lloyd McKenzie can you please help?
Thanks

view this post on Zulip Lloyd McKenzie (Feb 12 2021 at 14:12):

Can you post the URL of the example in question?

view this post on Zulip Saumitra Dobhal (Feb 15 2021 at 05:51):

@Lloyd McKenzie
Example url - https://www.hl7.org/fhir/diagnosticreport-example-ghp.json.html ("specimen" field in the last entry )
Resource url - https://www.hl7.org/fhir/diagnosticreport.html

Thanks!

view this post on Zulip Jean Duteau (Feb 15 2021 at 07:30):

The last entry in that example Bundle is an Observation and Observation.specimen is 0..1.

      "resource": {
        "resourceType": "Observation",
...
        "specimen": {
          "reference": "Specimen/urine",
          "display": "Urine Sample"
        }

view this post on Zulip Saumitra Dobhal (Feb 15 2021 at 08:08):

@Jean Duteau
Thanks a lot Jean! I completely missed to check the resource type for that entry :)


Last updated: Apr 12 2022 at 19:14 UTC