description: A single package that contains a specific kind of medication list with all supporting MedicationStatements and possibly other supporting resources. package_name: hl7.fhir.us.smp derivation: constraint name: SMPBundle type: Bundle elements: type: pattern: {type: code, value: collection} mustSupport: true type: code index: 0 total: {mustSupport: true, index: 1} entry: mustSupport: true index: 2 elements: search: {mustSupport: false, index: 3} request: {mustSupport: false, index: 4} response: {mustSupport: false, index: 5} slicing: rules: open discriminator: - {path: resource, type: type} min: 1 slices: patient: match: {} schema: mustSupport: true index: 8 elements: resource: {type: Patient, mustSupport: true, index: 9} required: [resource] medicationdispense: match: {} schema: {mustSupport: true, array: true, index: 15} min: 0 medicationadministration: match: {} schema: {mustSupport: true, array: true, index: 10} min: 0 medicationrequest: match: {} schema: {mustSupport: true, array: true, index: 14} min: 0 practitionerrole: match: {} schema: {mustSupport: true, array: true, index: 17} min: 0 list: match: {} schema: mustSupport: true _required: true index: 6 elements: resource: {type: List, mustSupport: true, index: 7} required: [resource] medicationstatement: match: {} schema: mustSupport: true array: true index: 11 elements: resource: {type: MedicationStatement, index: 12} practitioner: match: {} schema: {mustSupport: true, array: true, index: 16} min: 0 medication: match: {} schema: {mustSupport: true, array: true, index: 13} min: 0 package_version: 1.0.0 class: profile kind: resource url: http://hl7.org/fhir/us/smp/StructureDefinition/smp-bundle base: http://hl7.org/fhir/StructureDefinition/Bundle version: 1.0.0 required: [entry]