eug48 / fhir

FHIR Server using MongoDB and Go - now with proper transactions support! Aims to start quickly, have modest resource requirements and good performance.
Apache License 2.0
69 stars 16 forks source link

Create Complex Extension in FHIR Model #9

Closed richbraman closed 4 years ago

richbraman commented 4 years ago

Need code to create complex Extensions (extension(s) within extension like:

"security": { "extension": [ { "url": "http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris", "extension": [ { "url": "token", "valueUri": "https://bcda.cms.gov/auth/token" } ] } ],

so we added an Extension type to Extension.

test code: extension := []fhirmodels.Extension{ { Url: "http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris", Extension: []fhirmodels.Extension{ { Url: "token", ValueUri: "https://someurl.org/auth/token", }, }, }, }

eug48 commented 4 years ago

thanks!