I want to define an extension to be included in the patient resource type in DSTU2. I think using
Undeclared Extension makes sense here. As mentioned in the FHIR website, all the extension should be registered in the
StructureDefinition resource before use. Then, the question is, how can I fill the URL field? Or put it in another way, how can I register the extension on my local HAPI FHIR Server?
I have tried client.create().resource(StructureDefinition.class), but the create method is not applicable for StructureDefinition.