Stream: implementers
Topic: Logical models in FHIR .NET API
Flavius Butnariu (May 28 2017 at 12:58):
Hello everyone,
I was wondering whether the open source FHIR .NET API can handle logical models such as Colorectal and Prostate reports defined in the HL7 Australia Implementation Guide. Does the FHIR .NET API support operations such as parsing and validating instances against structure definitions of logical models?
I will be grateful for any information you can provide.
Grahame Grieve (May 28 2017 at 19:18):
@Brian Postlethwaite - the element model approach should do this transparently
Michel Rutten (May 29 2017 at 09:29):
Hi @Flavius Butnariu, Grahame is correct (of course). The FHIR spec and the FHIR API define and express logical models in the same way as constraining profiles, so FHIR API features should work on both. If you find some API features that fail on logical models, that's probably an implementation error - please report such issues on github. Pull requests are also welcome ;p
Flavius Butnariu (May 29 2017 at 15:15):
@Michel Rutten thank you for your reply.
I've been looking at parsing and validating an instance against the structure definition of a logical model.
I've gathered that the parsing of such an instance could be achieved by
var instance = new FhirXmlParser().Parse(string xml, Type dataType);
but I'm still trying to figure out how to make the implementation aware of data type TLeft
. It appears that a resolver implementing interface IResourceResolver
could be the key.
Any hints on how to achieve this?
Last updated: Apr 12 2022 at 19:14 UTC