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

..%Context

Or do something like this:

#dim context As YOURPKG.BP.YourBusinessProcessName.Context
Set context = ..%Context

Now you can use context.SurgeryData.

Hi Kari, can you please check the preview 2021.2 (docker pull containers.intersystems.com/intersystems/irishealth:2021.2.0.617.0)? This contains the %ZHS.HC.OAuth2.Utils.