FHIR Chat · Create Specialization that changes Reference target · Profiling Academy - archived

Stream: Profiling Academy - archived

Topic: Create Specialization that changes Reference target


view this post on Zulip Addy Naik (Mar 25 2022 at 12:58):

Hi I'm trying to create a specilization profile for ResearchStudy resource. The intent is that the individual attribute in ResearchStudy should be reference to Person instead of reference to Patient. Here is what the fsh looks like

Profile: MyResearchSubject
Parent: ResearchSubject
Description: "Participant of the PMI program"
* ^meta.versionId = "1"
* ^status = #draft
* ^derivation = #specialization
* individual only Reference(Person or Patient)

But this seems to give an error. Any thoughts on how i may be able to achieve this?

--- Edit -

It seems this works -

regards
Addy

view this post on Zulip Richard Townley-O'Neill (Mar 28 2022 at 01:47):

@Addy Naik
ResearchSubject.identifier limits identifier to be instances of Patient. Person is not a specialisation of Patient.
Patient is for record keeping. It is used to hold data common to multiple Patient resources, and never(almost never?) appears as a participant in resources.
Why is Patient not suitable?

view this post on Zulip Addy Naik (Mar 28 2022 at 16:18):

It may be suitable - but we were trying to include all "individuals" who may or may not be patients or patient records associated with them - May be to conduct social research. I think the resource patient indicates a connotation of care delivery which may not acceptable in some cases.


Last updated: Apr 12 2022 at 19:14 UTC