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 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 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: 2 elements: type: elements: coding: elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'} index: 3 code: pattern: {type: Code, value: MR} index: 4 required: [code] driversLicense: match: type: coding: {code: DL} schema: array: true index: 5 elements: type: elements: coding: elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'} index: 6 code: pattern: {type: Code, value: DL} index: 7 required: [code] socialSecurity: match: type: coding: {code: SS} schema: index: 8 elements: type: elements: coding: elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'} index: 9 code: pattern: {type: Code, value: SS} index: 10 required: [code] system: pattern: {type: Uri, value: 'http://hl7.org/fhir/sid/us-ssn'} index: 11 name: index: 12 elements: family: {index: 13} given: {index: 14} suffix: {index: 15} required: [given, family] gender: {index: 16} 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: 17 address: index: 18 elements: line: {index: 19} city: {index: 20} state: {index: 21} postalCode: {index: 22} country: {mustSupport: true, index: 23} package_version: 1.0.0-ballot 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-ballot required: [birthDate]