Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first attempt at BeRelatedPerson #118

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions input/fsh/extensions/BeExtPeriod.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Extension: BeExtPeriod
Id: be-ext-period
* value[x] 0..1 MS
* value[x] only Period
* ^context.type = #element
* ^context.expression = "Element"
* . ^short = "Period"
* . ^definition = "Attaches a period to an Element"
8 changes: 6 additions & 2 deletions input/fsh/instances/relatedperson.fsh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
Instance: relatedperson
InstanceOf: RelatedPerson
InstanceOf: BeRelatedPerson
* identifier[SSIN][+].system = "https://www.ehealth.fgov.be/standards/fhir/core/NamingSystem/ssin"
* identifier[SSIN][=].value = "79121137740"
* patient = Reference(patient1)
* relationship = $sct#444191003
* relationship[relation] = $sct#25211005
* relationship[role][+] = $sct#58626002
* relationship[role][=].coding.extension[valid].valuePeriod.start = "2024-06-14"
7 changes: 7 additions & 0 deletions input/fsh/logicals/BeModelRelatedPerson.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Logical: BeModelRelatedPerson
* identifier 0..* Identifier "Business identifier of the related person (Please be aware that a person can be a related person to many patients, and that for each of these there will be a separate related person instance, so the SSIN will not be a unique identifier for this resource)"
* patient 1..1 Identifier "Patient this person is the related person for"
* relationship 0..1 CodeableConcept "The type of relationship to the patient, e.g. family tie, acquaintance,..."
* role 0..* BackboneElement "role taken up by the related person"
* role.type 0..1 CodeableConcept "The (legal/care related) role taken up by the related person"
* role.period 0..1 Period "The period during which the role was valid"
24 changes: 24 additions & 0 deletions input/fsh/profiles/BeRelatedPerson.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Profile: BeRelatedPerson
Parent: RelatedPerson
* identifier MS
* identifier ^slicing.discriminator.type = #value
* identifier ^slicing.discriminator.path = "system"
* identifier ^slicing.rules = #open
* identifier ^definition = "Business identifier of the related person "
* identifier contains SSIN 0..*
* identifier[SSIN] ^definition = "Please be aware that a person can be a related person to many patients, and that for each of these there will be a separate related person instance, so the SSIN will not be a unique identifier for this resource"
* identifier[SSIN].system = "https://www.ehealth.fgov.be/standards/fhir/core/NamingSystem/ssin" (exactly)
* identifier[SSIN].value 1..1
* identifier obeys be-inv-SSIN
* relationship 0..* MS
* relationship ^slicing.discriminator.type = #value
* relationship ^slicing.discriminator.path = "coding"
* relationship ^slicing.rules = #open
* relationship ^definition = "Relationships of the related person "
* relationship contains relation 1..1 MS
and role 0..*
* relationship[relation].coding from BeVSRelation
* relationship[role].coding from BeVSRole
* relationship[role].coding.extension contains BeExtPeriod named valid 0..1 MS
* patient 1..1 MS
* patient only Reference(BePatient)
41 changes: 41 additions & 0 deletions input/fsh/valuesets/BeVSRelation.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
ValueSet: BeVSRelation
Id: be-vs-relation
Title: "BeVSRelation"
Description: "Family and emotional relationships"
* ^copyright = "This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (SNOMED International), and distributed by agreement between SNOMED International and HL7. Implementer use of SNOMED CT is not covered by this agreement"
* ^compose.include[+].version = "http://snomed.info/sct/11000172109"
* ^compose.include[=].system = "http://snomed.info/sct"
* ^compose.include[=].filter[0].property = #"concept"
* ^compose.include[=].filter[=].op = #"is-a"
* ^compose.include[=].filter[=].value = "427568008"
* ^compose.include[+].version = "http://snomed.info/sct/11000172109"
* ^compose.include[=].system = "http://snomed.info/sct"
* ^compose.include[=].filter[0].property = #"concept"
* ^compose.include[=].filter[=].op = #"is-a"
* ^compose.include[=].filter[=].value = "303071001"
* ^compose.include[+].version = "http://snomed.info/sct/11000172109"
* ^compose.include[=].system = "http://snomed.info/sct"
* ^compose.include[=].filter[0].property = #"concept"
* ^compose.include[=].filter[=].op = #"is-a"
* ^compose.include[=].filter[=].value = "303121002"
* ^compose.include[+].version = "http://snomed.info/sct/11000172109"
* ^compose.include[=].system = "http://snomed.info/sct"
* ^compose.include[=].filter[0].property = #"concept"
* ^compose.include[=].filter[=].op = #"is-a"
* ^compose.include[=].filter[=].value = "303072008"
* ^compose.include[+].version = "http://snomed.info/sct/11000172109"
* ^compose.include[=].system = "http://snomed.info/sct"
* ^compose.include[=].filter[0].property = #"concept"
* ^compose.include[=].filter[=].op = #"is-a"
* ^compose.include[=].filter[=].value = "224527006"
* ^compose.include[+].version = "http://snomed.info/sct/11000172109"
* ^compose.include[=].system = "http://snomed.info/sct"
* ^compose.include[=].filter[0].property = #"concept"
* ^compose.include[=].filter[=].op = #"is-a"
* ^compose.include[=].filter[=].value = "309456003"
* ^compose.include[+].version = "http://snomed.info/sct/11000172109"
* ^compose.include[=].system = "http://snomed.info/sct"
* ^compose.include[=].filter[0].property = #"concept"
* ^compose.include[=].filter[=].op = #"is-a"
* ^compose.include[=].filter[=].value = "224627004"

10 changes: 10 additions & 0 deletions input/fsh/valuesets/BeVSRole.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ValueSet: BeVSRole
Id: be-vs-role
Title: "BeVSRole"
Description: "Legal relationships"
* ^copyright = "This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (SNOMED International), and distributed by agreement between SNOMED International and HL7. Implementer use of SNOMED CT is not covered by this agreement"
* ^compose.include[+].version = "http://snomed.info/sct/11000172109"
* ^compose.include[=].system = "http://snomed.info/sct"
* ^compose.include[=].filter[0].property = #"concept"
* ^compose.include[=].filter[=].op = #"is-a"
* ^compose.include[=].filter[=].value = "410603005"