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?
Comments
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