Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rmrlangford committed Feb 1, 2024
1 parent e71e7fd commit dd0817c
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 2 deletions.
129 changes: 128 additions & 1 deletion input/fsh/examples.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,131 @@ InstanceOf: ServiceProvider
Usage: #example
Title: "Organization"
Description: "Organization providing health related services."
* name = "Some Health Facility"
* name = "Some Health Facility"

Instance: ChiefAtBirthRelatedPersonExample
InstanceOf: ChiefAtBirthRelatedPerson
Usage: #example
Title: "Chief at Birth"
Description: "Patient'a chief at birth."
* patient = Reference(ImmunizationPatientExample)
* name[+].use = #official
* name[=].family = "Jones"
* relationship = $SCT#303119007

Instance: DatePatientFirstMarriedObservationExample
InstanceOf: DatePatientFirstMarriedObservation
Usage: #example
Title: "Patient's Date of First Marriage"
Description: "Records the date when the patient was first married"
* status = #final
* code = $SCT#365581002
* encounter = Reference(TargetFacilityEncounterExample)
* effectiveDateTime = "2022-11-30"
* valueDateTime = "1983-05-22T16:40:17+02:00"
* category.coding.code = #social-history
* category.coding.system = "http://terminology.hl7.org/CodeSystem/observation-category"
* subject = Reference (ImmunizationPatientExample)
* performer = Reference(OrganizationExample)

Instance: PatientFatherRelatedPersonExample
InstanceOf: PatientFatherRelatedPerson
Usage: #example
Title: "Father Relation to Patient"
Description: "The patient's father."
* patient = Reference(ImmunizationPatientExample)
* name[+].use = #official
* name[=].given[+] = "Mike"
* relationship = $PARENT_RELATIONSHIP_CODES#FTH

Instance: GenericObservationExample
InstanceOf: GenericObservation
Usage: #example
Title: "Generic Social History Observation Profile"
Description: "This profile acts as a base profile from which more specific social history observation profiles can be derived."
* status = #final
* code = $SCT#160476009
* encounter = Reference(TargetFacilityEncounterExample)
* effectiveDateTime = "2022-11-30"
* category.coding.code = #social-history
* category.coding.system = "http://terminology.hl7.org/CodeSystem/observation-category"
* subject = Reference (ImmunizationPatientExample)
* performer = Reference(OrganizationExample)

Instance: GuardianOccupationObservationExample
InstanceOf: GuardianOccupationObservation
Usage: #example
Title: "Guardian Occupation"
Description: "Records the current occupation for the guardian"
* status = #final
* code = $LNC#11341-5
* encounter = Reference(TargetFacilityEncounterExample)
* effectiveDateTime = "2022-11-30"
* category.coding.code = #social-history
* category.coding.system = "http://terminology.hl7.org/CodeSystem/observation-category"
* subject = Reference (ImmunizationPatientExample)
* performer = Reference(OrganizationExample)
* valueCodeableConcept = $SCT#79859009
* valueCodeableConcept.text = "Computer programmer"

Instance: GuardianRelatedPersonExample
InstanceOf: GuardianRelatedPerson
Usage: #example
Title: "Guardian Relation to Patient"
Description: "A guardian to the patient."
* patient = Reference(ImmunizationPatientExample)
* name[+].use = #official
* name[=].given[+] = "Mike"
* name[=].family = "Smith"
* relationship = $SCT#394619001

Instance: PatientMotherRelatedPersonExample
InstanceOf: PatientMotherRelatedPerson
Usage: #example
Title: "Mother Relation to Patient"
Description: "The patient's mother."
* patient = Reference(ImmunizationPatientExample)
* name[+].use = #official
* name[=].given[+] = "Olivia"
* name[=].family = "Smith"
* relationship = $PARENT_RELATIONSHIP_CODES#MTH

Instance: RelationToPatientExample
InstanceOf: RelationToPatient
Usage: #example
Title: "Generic Relation to Patient"
Description: "This profile acts as a base profile from which more specific RelatedPerson profiles can be derived."
* identifier[NRC][+].value = "999999/99/9"
* identifier[NRC][=].system = "http://openhie.org/fhir/zambia-immunizations/identifier/relative-nrc"
* patient = Reference(ImmunizationPatientExample)
* name[+].use = #official
* name[=].given[+] = "Olivia"
* name[=].family = "Smith"
* relationship = $PARENT_RELATIONSHIP_CODES#MTH

Instance: RelativeRelatedPersonExample
InstanceOf: RelativeRelatedPerson
Usage: #example
Title: "Relative Relation to Patient"
Description: "The patient's relative."
* patient = Reference(ImmunizationPatientExample)
* name[+].use = #official
* name[=].given[+] = "Olivia"
* name[=].family = "Smith"
* relationship = $SCT#125677006

Instance: SpouseOccupationObservationExample
InstanceOf: SpouseOccupationObservation
Usage: #example
Title: "Spouse Occupation"
Description: "Records the current occupation for the spouse"
* status = #final
* code = $SCT#447057006
* encounter = Reference(TargetFacilityEncounterExample)
* effectivePeriod.start = "2017-03-01"
* category.coding.code = #social-history
* category.coding.system = "http://terminology.hl7.org/CodeSystem/observation-category"
* subject = Reference (ImmunizationPatientExample)
* performer = Reference(OrganizationExample)
* valueCodeableConcept = $SCT#11205001
* valueCodeableConcept.text = "Judge"
10 changes: 9 additions & 1 deletion input/fsh/smartcare.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ Description: "This profile acts as a base profile from which more specific Relat

* patient 1..1
* patient only Reference(ImmunizationPatient)
* relationship 1..1
* relationship.coding.code 1..1
* relationship.coding.system 1..1
* name 0..* MS
Expand Down Expand Up @@ -153,6 +152,7 @@ Parent: RelationToPatient
Id: spouse-relation-to-patient
Title: "Spouse Relation to Patient"
Description: "The husband or wife, considered in relation to the patient."
* relationship 1..1
* relationship from VSSpouseRelationCodes (required)
* name.given 1..1
* name.family 1..1
Expand All @@ -162,6 +162,7 @@ Parent: RelationToPatient
Id: guardian-relation-to-patient
Title: "Guardian Relation to Patient"
Description: "A guardian to the patient."
* relationship 1..1
* relationship = $SCT#394619001
* name.given 1..1
* name.family 1..1
Expand All @@ -175,6 +176,7 @@ Description: "A patient's highest education level attained"
* effectiveDateTime 0..1 MS
* effectiveDateTime ^definition =
"reason(s) why this should be supported."
* valueCodeableConcept 1..1
* valueCodeableConcept from VSLOINCEducationLevelAttained (required)

Profile: TargetFacilityEncounter
Expand Down Expand Up @@ -228,6 +230,7 @@ Description: "Records the current occupation for the spouse"
* effectivePeriod 0..1 MS
* effectivePeriod ^definition =
"reason(s) why this should be supported."
* valueCodeableConcept 1..1
* valueCodeableConcept from VSIndividualOccupation (extensible)

Profile: GuardianOccupationObservation
Expand All @@ -239,6 +242,7 @@ Description: "Records the current occupation for the guardian"
* effectivePeriod 0..1 MS
* effectivePeriod ^definition =
"reason(s) why this should be supported."
* valueCodeableConcept 1..1
* valueCodeableConcept from VSIndividualOccupation (extensible)

Profile: DatePatientFirstMarriedObservation
Expand Down Expand Up @@ -272,6 +276,7 @@ Parent: RelationToPatient
Id: mother-relation-to-patient
Title: "Mother Relation to Patient"
Description: "The patient's mother."
* relationship 1..1
* relationship = $PARENT_RELATIONSHIP_CODES#MTH
* name.given 1..1
* name.family 1..1
Expand All @@ -281,6 +286,7 @@ Parent: RelationToPatient
Id: father-relation-to-patient
Title: "Father Relation to Patient"
Description: "The patient's father."
* relationship 1..1
* relationship = $PARENT_RELATIONSHIP_CODES#FTH
* name.given 1..1

Expand All @@ -289,12 +295,14 @@ Parent: RelationToPatient
Id: relative-relation-to-patient
Title: "Relative Relation to Patient"
Description: "The patient's relative."
* relationship 1..1
* relationship = $SCT#125677006

Profile: ChiefAtBirthRelatedPerson
Parent: RelationToPatient
Id: chief-at-birth-relation-to-patient
Title: "Chief at Birth"
Description: "Patient'a chief at birth."
* relationship 1..1
* relationship = $SCT#303119007
* name.family 1..1

0 comments on commit dd0817c

Please sign in to comment.