description: The P-Care profile for exchanging a clinical document Bundle. package_name: ca.on.oh.setp-development derivation: constraint name: PCareBundleDocument type: Bundle elements: meta: extensions: submissionMetadata: {url: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/pcare-submission-metadata', min: 0, type: Extension, index: 1} elements: extension: index: 0 slicing: rules: open ordered: false description: Extensions are always sliced by (at least) url discriminator: - {path: url, type: value} min: null slices: submissionMetadata: match: {url: null} schema: {type: Extension, url: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/pcare-submission-metadata', index: 1} min: 0 security: binding: {strength: extensible, valueSet: 'http://fhir.infoway-inforoute.ca/p-care/ValueSet/pcare-security-labels'} index: 2 identifier: {index: 3} type: pattern: {type: Code, value: document} index: 4 timestamp: {index: 5} link: {index: 6} entry: short: Entry resource in the document bundle array: true min: 2 index: 7 elements: fullUrl: {index: 8} search: {index: 9} request: {index: 10} response: {index: 11} required: [fullUrl] slicing: rules: open discriminator: - {path: resource, type: type} - {path: resource, type: profile} min: 2 slices: patient: match: {} schema: _required: true index: 15 elements: resource: {type: Patient, index: 16} required: [resource] immunization: match: {} schema: array: true index: 39 elements: resource: {type: Immunization, index: 40} required: [resource] observation-oxygensat: match: {} schema: array: true index: 83 elements: resource: {type: Observation, index: 84} required: [resource] observation-results-laboratory-pathology: match: {} schema: array: true index: 65 elements: resource: {type: Observation, index: 66} required: [resource] organization-lab: match: {} schema: array: true index: 89 elements: resource: {type: Organization, index: 90} required: [resource] familymemberhistory: match: {} schema: array: true index: 35 elements: resource: {type: FamilyMemberHistory, index: 36} required: [resource] observation-bp: match: {} schema: array: true index: 71 elements: resource: {type: Observation, index: 72} required: [resource] deviceusestatement: match: {} schema: array: true index: 29 elements: resource: {type: DeviceUseStatement, index: 30} required: [resource] diagnosticreport: match: {} schema: array: true index: 31 elements: resource: {type: DiagnosticReport, index: 32} required: [resource] observation-results-radiology: match: {} schema: array: true index: 67 elements: resource: {type: Observation, index: 68} required: [resource] careplan: match: {} schema: array: true index: 19 elements: resource: {type: CarePlan, index: 20} required: [resource] specimen: match: {} schema: array: true index: 91 elements: resource: {type: Specimen, index: 92} required: [resource] medicationrequest: match: {} schema: array: true index: 45 elements: resource: {type: MedicationRequest, index: 46} required: [resource] allergyintolerance: match: {} schema: array: true index: 17 elements: resource: {type: AllergyIntolerance, index: 18} required: [resource] practitionerrole: match: {} schema: array: true index: 51 elements: resource: {type: PractitionerRole, index: 52} required: [resource] observation-headcircum: match: {} schema: array: true index: 79 elements: resource: {type: Observation, index: 80} required: [resource] clinicalimpression: match: {} schema: array: true index: 21 elements: resource: {type: ClinicalImpression, index: 22} required: [resource] observation-pregnancy-status: match: {} schema: array: true index: 59 elements: resource: {type: Observation, index: 60} required: [resource] procedure: match: {} schema: array: true index: 53 elements: resource: {type: Procedure, index: 54} required: [resource] observation-bmi: match: {} schema: array: true index: 69 elements: resource: {type: Observation, index: 70} required: [resource] consent: match: {} schema: array: true index: 25 elements: resource: {type: Consent, index: 26} required: [resource] observation-resprate: match: {} schema: array: true index: 85 elements: resource: {type: Observation, index: 86} required: [resource] observation-pregnancy-outcome: match: {} schema: array: true index: 57 elements: resource: {type: Observation, index: 58} required: [resource] immunizationrecommendation: match: {} schema: array: true index: 41 elements: resource: {type: ImmunizationRecommendation, index: 42} required: [resource] observation-vitalspanel: match: {} schema: array: true index: 87 elements: resource: {type: Observation, index: 88} required: [resource] observation-bodyheight: match: {} schema: array: true index: 73 elements: resource: {type: Observation, index: 74} required: [resource] condition: match: {} schema: array: true index: 23 elements: resource: {type: Condition, index: 24} required: [resource] medicationstatement: match: {} schema: array: true index: 47 elements: resource: {type: MedicationStatement, index: 48} required: [resource] practitioner: match: {} schema: array: true index: 49 elements: resource: {type: Practitioner, index: 50} required: [resource] observation-tobacco-use: match: {} schema: array: true index: 63 elements: resource: {type: Observation, index: 64} required: [resource] device: match: {} schema: array: true index: 27 elements: resource: {type: Device, index: 28} required: [resource] observation-bodytemp: match: {} schema: array: true index: 77 elements: resource: {type: Observation, index: 78} required: [resource] composition: match: {} schema: _required: true index: 12 elements: fullUrl: {index: 13} resource: type: Composition constraint: pcare-bdl-17: human: 'If Composition.title is Patient Summary - AB, then the following elements SHALL NOT be present: relatesTo, event, encounter, section.focus for PS-AB compatibility.' source: http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/bundle-document severity: warning expression: "Composition.title = 'Patient Summary - AB' implies \nattester.exists().not() and \nrelatesTo.exists().not() and \nevent.exists().not() and \nencounter.exists().not() and \nwhere(section.focus.exists().not())" pcare-bdl-18: human: 'If Composition.title is Patient Summary - AB, then the following sections SHALL NOT be present: sectionImmunizations, sectionMedicalDevices, sectionResults, sectionPastIllnessHx, sectionFunctionalStatus, sectionPlanOfCare, sectionPregnancyHx, sectionAdvanceDirectives, sectionPatientStory for PS-AB compatibility.' source: http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/bundle-document severity: warning expression: "Composition.title = 'Patient Summary - AB' implies \nsection.code.coding.where(code = '11369-6').exists().not() and \nsection.code.coding.where(code = '46264-8').exists().not() and \nsection.code.coding.where(code = '30954-2').exists().not() and \nsection.code.coding.where(code = '11348-0').exists().not() and \nsection.code.coding.where(code = '47420-5').exists().not() and \nsection.code.coding.where(code = '18776-5').exists().not() and \nsection.code.coding.where(code = '10162-6').exists().not() and \nsection.code.coding.where(code = '42348-3').exists().not() and\nsection.code.coding.where(code = '81338-6').exists().not()" index: 14 required: [resource] imagingstudy: match: {} schema: array: true index: 37 elements: resource: {type: ImagingStudy, index: 38} required: [resource] documentreference: match: {} schema: array: true index: 33 elements: resource: {type: DocumentReference, index: 34} required: [resource] observation-heartrate: match: {} schema: array: true index: 81 elements: resource: {type: Observation, index: 82} required: [resource] observation-bodyweight: match: {} schema: array: true index: 75 elements: resource: {type: Observation, index: 76} required: [resource] observation-alcohol-use: match: {} schema: array: true index: 61 elements: resource: {type: Observation, index: 62} required: [resource] observation-pregnancy-edd: match: {} schema: array: true index: 55 elements: resource: {type: Observation, index: 56} required: [resource] medication: match: {} schema: array: true index: 43 elements: resource: {type: Medication, index: 44} required: [resource] package_version: 1.1.0 class: profile kind: resource url: http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/bundle-document base: http://hl7.org/fhir/StructureDefinition/Bundle version: 0.1.0 required: [timestamp, identifier]