FHIR Chat · Help needed · implementers

Stream: implementers

Topic: Help needed


view this post on Zulip Martijn Hermans (Jun 06 2019 at 13:49):

Hi all, i'm new to FHIR so excuse me if I ask the wrong question at the wrong place. I just wrote a piece of c# to check if a Resource conforms to a particular stucture definition:

        public static bool ConformsTo(DomainResource resource, FhirUri uri)
        {
            if (resource?.Meta != null)
                foreach (string p in resource.Meta.Profile)
                    if (p == uri.Value)
                        return true;

            Log(EnumLogType.Warning, $"Resource doesn't conforms to {uri.Value}");

            return false;
        }

I use this to check if an organisation conforms to : http://fhir.nl/fhir/StructureDefinition/nl-core-organization

This works but I also want to check if a particular Address resource conforms to: http://fhir.nl/fhir/StructureDefinition/nl-core-address

The problem is: Address doesn't have a Meta parameter to check. Is there an other way to do this?

view this post on Zulip Michel Rutten (Jun 06 2019 at 14:13):

Hi @Martijn Hermans, please note that this only detects a profile conformance claim. To determine if the instance actually conforms, you need to run the validator.

view this post on Zulip Martijn Hermans (Jun 06 2019 at 14:26):

Hi @Michel Rutten thanks. I wasn't even aware of the existence of a validator. I will look further into that!

I did realize I was only checking the claim. The code I showed is used to export FHIR data and the check is there predominantly to warn my colleagues (or myself) if I by accident passthe wrong profile to the function.

Does there exist something like a conformance claim for an address?

view this post on Zulip Michele Mottini (Jun 06 2019 at 14:28):

Does there exist something like a conformance claim for an address?

No, if the resource claims to conform to a certain profile that applies to all its content

view this post on Zulip Lloyd McKenzie (Jun 06 2019 at 16:08):

Also note that many resources will comply with profiles you care about but won't claim conformance - because they don't know/care about your particular profile.

view this post on Zulip Jeremie Osaghae-Nosa (Jun 12 2019 at 21:51):

Has anyone ever connected a cds hook with their fhir app. I'm having trouble getting the actual request data to go with the app when the link is clicked. The link works and smart on fhir app works separately. However, prefetch data isn't moving to app.

view this post on Zulip Grahame Grieve (Jun 12 2019 at 22:06):

you might want to ask here: https://chat.fhir.org/#narrow/stream/179159-cds-hooks


Last updated: Apr 12 2022 at 19:14 UTC