RuleSet: ImposeProfile ( profile, index ) * ^extension[http://hl7.org/fhir/StructureDefinition/structuredefinition-imposeProfile][{index}].valueCanonical = {profile} RuleSet: SectionComRules (short, def, code) // * insert (Health Concern Section, test, http://loinc.org#75310-3) * ^extension[0].url = "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name" * ^extension[0].valueString = "Section" * ^short = "{short}" * ^definition = "{def}" * title 1.. * code 1.. * code only http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips * code = {code} (exactly) * text 1.. * text only Narrative * emptyReason ..0 * emptyReason ^mustSupport = false RuleSet: SectionEntrySliceComRules (short, def) * entry ^slicing.discriminator[0].type = #type * entry ^slicing.discriminator[0].path = "resolve()" * entry ^slicing.ordered = false * entry ^slicing.rules = #open * entry ^short = "{short}" * entry ^definition = "{def}" RuleSet: SectionEntrySlicePerProfileRules (short, def) * entry ^slicing.discriminator[0].type = #profile * entry ^slicing.discriminator[0].path = "resolve()" * entry ^slicing.ordered = false * entry ^slicing.rules = #open * entry ^short = "{short}" * entry ^definition = "{def}" RuleSet: SectionEntrySliceDefRules (name, card, short, def, profiles) // SectionEntrySliceDefRules (flags, 0.., "Care Team", "Care Team", CareTeamXpandh) * entry contains {name} {card} * entry[{name}] {card} * entry[{name}] ^short = "{short}" * entry[{name}] ^definition = "{def}" * entry[{name}] only Reference({profiles}) //-------------------------------------------- RuleSet: NoSubSectionsRules * section ..0 * section ^mustSupport = false //==================================== // COMMON SECTIONS //==================================== RuleSet: AlertSectionRules // Alert Section used for the HDR and PS composition * section contains alertSection ..1 MS * section[alertSection] * insert SectionComRules ( Health Concern Section, // SHORT This section contains data describing an interest or worry about a health state or process that could possibly require attention\, intervention\, or management. A Health Concern is a health related matter that is of interest\, importance or worry to someone\, who may be the patient\, patient's family or patient's health care provider. Health concerns are derived from a variety of sources within an EHR\, such as Problem List\, Family History\, Social Histor\, Social Worker Note\, etc. Health concerns can be medical\, surgical\, nursing\, allied health or patient-reported concerns. Problem Concerns are a subset of Health Concerns that have risen to the level of importance that they typically would belong on a classic “Problem List”\, such as “Diabetes Mellitus” or “Family History of Melanoma” or “Tobacco abuse”. These are of broad interest to multiple members of the care team. Examples of other Health Concerns that might not typically be considered a Problem Concern include “Risk of Hyperkalemia” for a patient taking an ACE-inhibitor medication\, or “Transportation difficulties” for someone who doesn't drive and has trouble getting to appointments\, or “Under-insured” for someone who doesn't have sufficient insurance to properly cover their medical needs such as medications. These are typically most important to just a limited number of care team members, // DESC http://loinc.org#75310-3 ) // CODE * entry 0.. * insert SectionEntrySliceComRules(Alerts, Alerts) // entry slices * insert SectionEntrySliceDefRules (flag, 0.. , Flags , Flags , FlagXpandh) * insert SectionEntrySliceDefRules (detectedIssue, 0.. , Detected Issue, Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction\, Ineffective treatment frequency\, Procedure-condition conflict\, etc. , DetectedIssue) * insert SectionEntrySliceDefRules (riskAssessment, 0.. , Risk Assessment, An assessment of the likely outcomes for a patient or other subject as well as the likelihood of each outcome. , RiskAssessment) //======================================================== RuleSet: CareTeamSectionRules * section contains CareTeamSection ..1 MS * section[CareTeamSection] * insert SectionComRules ( Care Team Section, // SHORT The Care Team Section is used to share historical and current Care Team information., // DESC http://loinc.org#85847-2 ) // CODE * entry 0.. * insert SectionEntrySliceComRules(Care Teams, Care Teams) * insert SectionEntrySliceDefRules (cteam, 0.. , Care Team , Care Team , CareTeamXpandh) * insert NoSubSectionsRules