FHIR Chat · resourceType":"StructureDefinition · finnish PHR

Stream: finnish PHR

Topic: resourceType":"StructureDefinition


view this post on Zulip Juha Vuorinen (Dec 22 2017 at 07:17):

Why a new profile of a resource is tagged always as "resourceType":"StructureDefinition" and only in "type" tag the right resource is spesified (f.ex." type" = "observation")? Why not tag "resourceType" = "observation", if the profile is about observation resource?

view this post on Zulip Eeva Turkka (Dec 22 2017 at 09:14):

Do you mean the stored resource in the resource server? That is because a profile is a resource of resource type StructureDefinition and only an Observation would be a Observation resource. All the resources are json-objects so they need a field to declare their FHIR object type, for example a Observation resource from the standard: https://www.hl7.org/fhir/observation-example.json.html

view this post on Zulip Juha Vuorinen (Dec 22 2017 at 12:01):

Well, I'm specifying new resources to finnishPHR for an app. I try to figure out how to specify new resource or perhaps a new version of resource like for example previously specified observation resource (or is this a profile?) https://simplifier.net/FinnishPHR/fiphr-vitalsigns-stu3/~json.

view this post on Zulip Juha Vuorinen (Dec 22 2017 at 12:12):

By reading FHIR documentation, I got the point of profile. They are special use cases of 'standard' resources like observation, patient etc.. Profiles have always resourceType = StructureDefintion as specified by HL7 FHIR. HL7 FHIR itself specifies as well some standardized profiles, but it seems that it is possible to specify anykind of profiles like we do for finnishPRH. Then question is: when do we even need to use 'real' resources in server if we can do everything with profiles?

view this post on Zulip Eeva Turkka (Jan 02 2018 at 07:51):

Profiles are resources to describe how for example an observation should look like. Actual data is stored as observation, patient, etc resources and each of these resources declare the profile they conform to. In normal case an application should store for example a blood pressure measurement as an observation resource and declare that it follows the blood pressure profile. There is only one instance of the profile stored on the server, but many observations. The link to the profile is in meta-element of the Observation resource.

view this post on Zulip Juha Vuorinen (Jan 02 2018 at 09:51):

Thank you Eeva.


Last updated: Apr 12 2022 at 19:14 UTC