description: This CH IPS profile for the resource Composition is derived from the corresponding CH Core profile and also ensures IPS conformity via the IPS profile referenced by the so-called imposeProfile extension. package_name: ch.fhir.ig.ch derivation: constraint name: ChIpsComposition type: Composition elements: subject: type: Reference refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-patient'] index: 0 relatesTo: elements: target: choices: [targetIdentifier, targetReference] index: 2 targetIdentifier: {type: Identifier, choiceOf: target, index: 3} targetReference: type: Reference choiceOf: target refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-composition'] index: 4 section: array: true min: 3 index: 5 slicing: slices: sectionProblems: match: {} schema: _required: true index: 15 elements: code: pattern: type: CodeableConcept value: coding: - {code: 11450-4, system: 'http://loinc.org'} index: 16 entry: index: 17 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: null slices: problem: match: {} schema: type: Reference refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-condition'] array: true index: 18 min: 0 required: [code] sectionPatientStory: match: {} schema: index: 72 elements: code: pattern: type: CodeableConcept value: coding: - {code: 81338-6, system: 'http://loinc.org'} index: 73 required: [code] sectionProceduresHx: match: {} schema: index: 19 elements: code: pattern: type: CodeableConcept value: coding: - {code: 47519-4, system: 'http://loinc.org'} index: 20 entry: index: 21 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: null slices: procedure: match: {} schema: type: Reference refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Procedure-uv-ips'] array: true index: 22 min: 0 required: [code] sectionPlanOfCare: match: {} schema: index: 50 elements: code: pattern: type: CodeableConcept value: coding: - {code: 18776-5, system: 'http://loinc.org'} index: 51 entry: index: 52 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: null slices: carePlan: match: {} schema: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan'] array: true index: 53 min: 0 required: [code] sectionMedicalDevices: match: {} schema: index: 27 elements: code: pattern: type: CodeableConcept value: coding: - {code: 46264-8, system: 'http://loinc.org'} index: 28 entry: index: 29 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: null slices: deviceStatement: match: {} schema: type: Reference refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/DeviceUseStatement-uv-ips'] array: true index: 30 min: 0 required: [code] sectionSocialHistory: match: {} schema: index: 54 elements: code: pattern: type: CodeableConcept value: coding: - {code: 29762-2, system: 'http://loinc.org'} index: 55 entry: index: 56 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: null slices: smokingTobaccoUse: match: {} schema: type: Reference refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-tobaccouse-uv-ips'] index: 57 min: 0 max: 1 alcoholUse: match: {} schema: type: Reference refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-alcoholuse-uv-ips'] index: 58 min: 0 max: 1 required: [code] sectionFunctionalStatus: match: {} schema: index: 45 elements: code: pattern: type: CodeableConcept value: coding: - {code: 47420-5, system: 'http://loinc.org'} index: 46 entry: index: 47 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: null slices: disability: match: {} schema: type: Reference refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-condition'] array: true index: 48 min: 0 functionalAssessment: match: {} schema: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/ClinicalImpression'] array: true index: 49 min: 0 required: [code] sectionAllergies: match: {} schema: _required: true index: 11 elements: code: pattern: type: CodeableConcept value: coding: - {code: 48765-2, system: 'http://loinc.org'} index: 12 entry: index: 13 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: null slices: allergyOrIntolerance: match: {} schema: type: Reference refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-allergyintolerance'] array: true index: 14 min: 0 required: [code] sectionPregnancyHx: match: {} schema: index: 59 elements: code: pattern: type: CodeableConcept value: coding: - {code: 10162-6, system: 'http://loinc.org'} index: 60 entry: index: 61 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: null slices: pregnancyStatus: match: {} schema: type: Reference refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-status-uv-ips'] array: true index: 62 min: 0 pregnancyOutcomeSummary: match: {} schema: type: Reference refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-outcome-uv-ips'] array: true index: 63 min: 0 required: [code] sectionAdvanceDirectives: match: {} schema: index: 64 elements: code: pattern: type: CodeableConcept value: coding: - {code: 42348-3, system: 'http://loinc.org'} index: 65 entry: index: 66 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: null slices: advanceDirectivesConsent: match: {} schema: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/Consent'] array: true index: 67 min: 0 required: [code] sectionAlerts: match: {} schema: index: 68 elements: code: pattern: type: CodeableConcept value: coding: - {code: 104605-1, system: 'http://loinc.org'} index: 69 entry: index: 70 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: null slices: alertsFlag: match: {} schema: type: Reference refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Flag-alert-uv-ips'] array: true index: 71 min: 0 required: [code] sectionVitalSigns: match: {} schema: index: 37 elements: code: pattern: type: CodeableConcept value: coding: - {code: 8716-3, system: 'http://loinc.org'} index: 38 entry: index: 39 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: null slices: vitalSign: match: {} schema: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/vitalsigns'] array: true index: 40 min: 0 required: [code] sectionImmunizations: match: {} schema: index: 23 elements: code: pattern: type: CodeableConcept value: coding: - {code: 11369-6, system: 'http://loinc.org'} index: 24 entry: index: 25 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: null slices: immunization: match: {} schema: type: Reference refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-immunization'] array: true index: 26 min: 0 required: [code] sectionResults: match: {} schema: index: 31 elements: code: pattern: type: CodeableConcept value: coding: - {code: 30954-2, system: 'http://loinc.org'} index: 32 entry: index: 33 slicing: rules: open discriminator: - {path: resolve(), type: type} - {path: resolve(), type: profile} min: null slices: resultsObservationLaboratoryPathology: match: {} schema: type: Reference refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-results-laboratory-pathology-uv-ips'] array: true index: 34 min: 0 resultsObservationRadiology: match: {} schema: type: Reference refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-results-radiology-uv-ips'] array: true index: 35 min: 0 resultsDiagnosticReport: match: {} schema: type: Reference refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/DiagnosticReport-uv-ips'] array: true index: 36 min: 0 required: [code] sectionMedications: match: {} schema: _required: true index: 6 elements: code: pattern: type: CodeableConcept value: coding: - {code: 10160-0, system: 'http://loinc.org'} index: 7 entry: index: 8 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: null slices: medicationStatement: match: {} schema: type: Reference refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-medicationstatement'] array: true index: 9 min: 0 medicationRequest: match: {} schema: type: Reference refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-medicationrequest'] array: true index: 10 min: 0 required: [code] sectionPastIllnessHx: match: {} schema: index: 41 elements: code: pattern: type: CodeableConcept value: coding: - {code: 11348-0, system: 'http://loinc.org'} index: 42 entry: index: 43 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: null slices: pastProblem: match: {} schema: type: Reference refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-condition'] array: true index: 44 min: 0 required: [code] package_version: ips-1.0.0 class: profile kind: resource url: http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-composition base: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-epr version: 1.0.0