description: A way to define and create a specific kind of medication list and the various medications that are on the list in a single transaction. package_name: rs/hl7.fhir.us.smp derivation: constraint name: SMPBundleTransaction type: Bundle elements: type: pattern: {type: code, value: transaction} mustSupport: true type: code index: 0 total: {mustSupport: true, index: 1} entry: mustSupport: true index: 2 elements: search: {mustSupport: false, index: 3} request: {mustSupport: true, index: 4} response: {mustSupport: false, index: 5} required: [request] slicing: rules: open discriminator: - {path: resource, type: type} min: 1 slices: list: match: {} schema: mustSupport: true _required: true index: 6 elements: resource: {type: List, index: 7} patient: match: {} schema: mustSupport: true index: 8 elements: resource: {type: Patient, index: 9} medicationstatement: match: {} schema: mustSupport: true array: true index: 10 elements: resource: {type: MedicationStatement, index: 11} medication: match: {} schema: {mustSupport: true, array: true, index: 12} min: 0 medicationrequest: match: {} schema: {mustSupport: true, array: true, index: 13} min: 0 medicationdispense: match: {} schema: {mustSupport: true, array: true, index: 14} min: 0 medicationadministration: match: {} schema: {mustSupport: true, array: true, index: 15} min: 0 package_version: 1.0.0 class: profile kind: resource url: http://hl7.org/fhir/us/smp/StructureDefinition/smp-bundle-transaction base: http://hl7.org/fhir/StructureDefinition/Bundle version: 1.0.0 required: [entry]