Search code examples
hl7-fhir

FHIR: .Net Sample code for using extension & "Other" Resource


Google search didn't help. Appreciate if you can share a sample codes for how to use extensions & "Other" resource using .Net Hl7.fhir.api and spark server.


Solution

  • You can take a look at many examples of preparing & sending resources in the FHIR testsuite called Sprinkler. This is not specifically about Other, but there's really no difference between managing extension on Patient or on Other. To see how to put extension on any resource, look at the ExtensionManagement() unit test here, which shows how to use extensions with the .NET API.