description: Defines constraints and extensions on the Patient resource when used by a Prescription Drug Monitoring Program (PDMP) to request or return an individual's medication dispensation history. package_name: hl7.fhir.us.pdmp.r4 derivation: constraint name: PdmpPatient type: Patient elements: extension: type: Extension mustSupport: true url: http://hl7.org/fhir/StructureDefinition/patient-animal index: 0 slicing: slices: patient-animal: match: {} schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/StructureDefinition/patient-animal', index: 0} min: 0 max: 1 identifier: index: 1 elements: value: {index: 2} slicing: rules: open description: Slice based on the identifier.type.code discriminator: - {path: type.coding.code, type: value} min: null slices: medicalRecordNumber: match: type: coding: {code: MR} schema: array: true index: 3 elements: type: elements: coding: elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'} index: 4 code: pattern: {type: Code, value: MR} index: 5 required: [code] driversLicense: match: type: coding: {code: DL} schema: array: true index: 6 elements: type: elements: coding: elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'} index: 7 code: pattern: {type: Code, value: DL} index: 8 required: [code] socialSecurity: match: type: coding: {code: SS} schema: index: 9 elements: type: elements: coding: elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'} index: 10 code: pattern: {type: Code, value: SS} index: 11 required: [code] system: pattern: {type: Uri, value: 'http://hl7.org/fhir/sid/us-ssn'} index: 12 name: elements: family: {index: 13} given: {index: 14} required: [given, family] gender: {index: 15} birthDate: constraint: pdmp-full-birthdate: {human: 'Date SHALL include year, month and day if present', source: 'http://hl7.org/fhir/us/pdmp/StructureDefinition/pdmp-patient', severity: error, expression: extension.exists() or toString().length()=10} index: 16 address: elements: line: {index: 17} city: {index: 18} state: {index: 19} postalCode: {index: 20} country: {mustSupport: true, index: 21} package_version: 1.0.0 extensions: patient-animal: {url: 'http://hl7.org/fhir/StructureDefinition/patient-animal', min: 0, max: 1, type: Extension, mustSupport: true, index: 0} class: profile kind: resource url: http://hl7.org/fhir/us/pdmp/StructureDefinition/pdmp-patient base: http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient version: 1.0.0 required: [birthDate]