FHIR Chat · Profile one of a polymorphic type · IG creation

Stream: IG creation

Topic: Profile one of a polymorphic type


view this post on Zulip Elliot Silver (Sep 28 2021 at 07:13):

I'm trying to profile Observation, such that any valueCodeableConcept uses the MySpecialCodeableConcept profile, without imposing any constraints on which value[x] are allowed. My attempt is:

            {
                "id": "Observation.component.value[x]",
                "path": "Observation.component.value[x]",
                "type": [
                    {
                        "code": "Quantity"
                    },
                    {
                        "code": "CodeableConcept",
                        "profile": [
                            "https://www.example.org/StructureDefinition/MySpecialCodeableConcept"
                        ]
                    },
                    {
                        "code": "string"
                    },
                    {
                        "code": "boolean"
                    },
                    {
                        "code": "integer"
                    },
                    {
                        "code": "Range"
                    },
                    ... (and so on for all value types).

Is this the correct way? It seems wrong to list types that I have nothing to say about. (Although, maybe I am saying something: "this is still allowed".)

view this post on Zulip Grahame Grieve (Sep 28 2021 at 07:17):

yes that it what you are saying

view this post on Zulip Elliot Silver (Sep 28 2021 at 07:22):

OK, thanks.

view this post on Zulip Elliot Silver (Sep 28 2021 at 07:49):

Somewhat related note, if I have an Observation profile declared as a global profile in my IG, and the IG references a core vital signs observation, does that mean the referenced Observation has to meet both my profile and the vital signs profile?

view this post on Zulip Grahame Grieve (Sep 28 2021 at 08:01):

I think so


Last updated: Apr 12 2022 at 19:14 UTC