Skip to content

Commit

Permalink
Merge pull request #42 from HL7/alerts-section
Browse files Browse the repository at this point in the history
Alerts section
  • Loading branch information
rhausam authored Jul 10, 2024
2 parents a611d72 + 64172d9 commit f9b7776
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
2 changes: 2 additions & 0 deletions input/fsh/aliases.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ Alias: $v3-RouteOfAdministration = http://terminology.hl7.org/CodeSystem/v3-Rout
Alias: $clinicaldocument = http://hl7.org/fhir/StructureDefinition/clinicaldocument
Alias: $vitalsigns = http://hl7.org/fhir/StructureDefinition/vitalsigns
Alias: $data-absent-reason = http://hl7.org/fhir/StructureDefinition/data-absent-reason
Alias: $workflow-supportingInfo = http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo
Alias: $flag-priority = http://hl7.org/fhir/StructureDefinition/flag-priority
Alias: $condition-severity = http://hl7.org/fhir/ValueSet/condition-severity
Alias: $vital-signs-profile = http://hl7.org/fhir/StructureDefinition/vitalsigns
3 changes: 3 additions & 0 deletions input/fsh/profiles/BundleUvIps.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Description: "This profile represents the constraints applied to the Bundle reso
observation-results-radiology 0..* and
observation-vital-signs 0..* and
specimen 0..* and
flag 0..* and
clinicalimpression 0..* and
careplan 0..* and
consent 0..* and
Expand Down Expand Up @@ -112,6 +113,8 @@ Description: "This profile represents the constraints applied to the Bundle reso
* entry[observation-vital-signs].resource only $vital-signs-profile
* entry[specimen].resource 1..
* entry[specimen].resource only SpecimenUvIps
* entry[flag].resource 1..
* entry[flag].resource only FlagAlertUvIps
* entry[clinicalimpression].resource 1..
* entry[clinicalimpression].resource only ClinicalImpression
* entry[careplan].resource 1..
Expand Down
28 changes: 26 additions & 2 deletions input/fsh/profiles/CompositionUvIps.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ This profile is based on the ClinicalDocument profile."""
sectionPlanOfCare 0..1 and
sectionSocialHistory 0..1 and
sectionPregnancyHx 0..1 and
sectionAdvanceDirectives 0..1
sectionAdvanceDirectives 0..1 and
sectionAlerts 0..1 and
sectionPatientStory 0..1
* section[sectionMedications] obeys ips-comp-1
* section[sectionMedications] ^extension[0].url = "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name"
* section[sectionMedications] ^extension[=].valueString = "Section"
Expand Down Expand Up @@ -311,4 +313,26 @@ This profile is based on the ClinicalDocument profile."""
* section[sectionAdvanceDirectives].entry ^short = "Narrative description of the patient's advance directive."
* section[sectionAdvanceDirectives].entry ^definition = "Contains a narrative description or a Consent entry with information about the patient's advance directive."
* section[sectionAdvanceDirectives].entry contains advanceDirectivesConsent 0..*
* section[sectionAdvanceDirectives].entry[advanceDirectivesConsent] only Reference(Consent)
* section[sectionAdvanceDirectives].entry[advanceDirectivesConsent] only Reference(Consent)
* section[sectionAlerts] ^extension[0].url = "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name"
* section[sectionAlerts] ^extension[=].valueString = "Section"
* section[sectionAlerts] ^short = "IPS Alerts Section"
* section[sectionAlerts] ^definition = "The alerts section flags potential concerns and/or dangers to/from the patient and may also include obstacles to care."
* section[sectionAlerts].title 1..
* section[sectionAlerts].code = $loinc#104605-1
* section[sectionAlerts].entry only Reference(Flag or DocumentReference)
* section[sectionAlerts].entry ^slicing.discriminator[0].type = #profile
* section[sectionAlerts].entry ^slicing.discriminator[=].path = "resolve()"
* section[sectionAlerts].entry ^slicing.rules = #open
* section[sectionAlerts].entry ^short = "Alert information."
* section[sectionAlerts].entry ^definition = "Contains alert information to be communicated. May optionally reference other resources in IPS."
* section[sectionAlerts].entry contains alertsFlag 0..*
* section[sectionAlerts].entry[alertsFlag] only Reference(FlagAlertUvIps)
* section[sectionPatientStory] ^extension[0].url = "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name"
* section[sectionPatientStory] ^extension[=].valueString = "Section"
* section[sectionPatientStory] ^short = "IPS Patient Story Section"
* section[sectionPatientStory] ^definition = "The section contains narrative text along with optional resources that express what matters to a patient. This may include needs, strengths, values, concerns and preferences to others providing support and care. The patient’s story, provided here, may be told by the patient or by a proxy."
* section[sectionPatientStory].title 1..
* section[sectionPatientStory].code = $loinc#81338-6
* section[sectionPatientStory].entry ^short = "Patient Story resources."
* section[sectionPatientStory].entry ^definition = "Contains resources to support the Patient Story. Instances of DocumentReference or any other suitable resource type may be used."
23 changes: 23 additions & 0 deletions input/fsh/profiles/FlagAlertUvIps.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Profile: FlagAlertUvIps
Parent: Flag
Id: Flag-alert-uv-ips
Title: "Flag - Alert (IPS)"
Description: """This profile constrains the Flag resource by the International Patient Summary (IPS) FHIR Implementation Guide. A record of an alert is represented in the patient summary as an instance of a Flag resource constrained by this profile.

This specialized Flag is used to convey information about an alert specific to an IPS. Information is flagged to raise awareness of potential concerns and/or dangers to/from the subject of the IPS. It brings information to the fore and may reference other information from the summary (through the supportingInfo extension) as well as present obstacles to care."""
* ^version = "2.0.0"
* ^status = #active
* ^experimental = false
* ^date = "2024-07-03T10:50:07-05:00"
* ^publisher = "HL7 International / Patient Care"
* ^contact.telecom.system = #url
* ^contact.telecom.value = "http://www.hl7.org/Special/committees/patientcare"
* ^jurisdiction = $m49.htm#001
* ^purpose = "This profile constrains the representation of a record of an alert in the context of the international patient summary as specified by the IPS project of HL7 International."
* extension contains $workflow-supportingInfo named supportingInfo 0..1
* extension contains $flag-priority named flag-priority 0..1 MS
* status = #active (exactly)
* category MS
* category only CodeableConceptIPS
* code MS
* code only CodeableConceptIPS

0 comments on commit f9b7776

Please sign in to comment.