Add FHIR package for extension and search parameter of type Reference to the FHIR server
Following "Adding Custom HL7 FHIR packages to the HL7 FHIR server" at https://learning.intersystems.com/course/view.php?id=1721 I'm able to create an FHIR extension of type string as well as a search parameter.
However, I need to create an extension as well as a search parameter of type Reference. And this is not working.
Did anyone successfully add an extension and search parameter of type Reference?
Product version: IRIS 2022.1
$ZV: IRIS for Windows (x86-64) 2022.1 (Build 209U) Tue May 31 2022 12:16:40 EDT [Health:3.5.0]
David,
It appears that in discussion with our Worldwide Response Center support you identified the root cause of the problem to be an erroneous example on the HL7 FHIR website at: http://hl7.org/fhir/searchparameter-example-extension.json.html
The example lacks the "url=" text that should precede the specific extension url text.
Best regards,
Paul Lomayesva
InterSystems Corporation
Paul,
I don't think I identified that as the root cause of the problem.
For future reference:
DocumentReference.extension('http://example.org/fhir/StructureDefinition/participation-agreement').value or
"DocumentReference.extension('http://example.org/fhir/StructureDefinition/participation-agreement').value.as(Reference) should work (https://build.fhir.org/searchparameter-example-extension.json.html). But it doesn't (for me).
The only way I got this working is like this:
DocumentReference.extension.where(url='http://example.org/fhir/StructureDefinition/participation-agreement').value
But YMMV.
Best regards, David