fhirbase / fhirbase-plv8

[DEPRECATED] Fhirbase 2.0 is an FHIR relational storage
https://health-samurai.io/fhirbase
Other
105 stars 39 forks source link

Default structure definitions lack meta section #141

Open Andrzej-Pietrzak opened 8 years ago

Andrzej-Pietrzak commented 8 years ago

User that wants to take advantage of versioning cannot use a generic mechanism for reading structure definitions alike other resources.

SELECT fhir_read_resource('{"resourceType": "STRUCTUREDEFINITION", "id": "Patient"}'); returns only the content of resource column and the structure definitions loaded initially don't contain meta sections. So to take advantage of versioning, reading of structure definitions has to be implemented differently than all other resources or fhirbase user has to add a custom migration

Could we add the meta sections to the preloaded StructureDefinitions ?