description: This profile is for PCR Contributions. package_name: ca.on.pcr.r4 derivation: constraint name: PCRPatientContribution type: Patient elements: address: constraint: CANUSStateRequired: {human: 'If the country is CAN or USA, then the state and postalCode must exist', source: 'http://ontariohealth.ca/fhir/pcr/StructureDefinition/profile-patient-contribution', severity: error, expression: (country = 'USA' or country = 'CAN') implies (state.exists() and postalCode.exists())} mustSupport: true index: 31 elements: use: {mustSupport: true, index: 32} type: {mustSupport: true, index: 33} text: {short: Maximum length of 250 characters, mustSupport: true, index: 34} line: {short: Maximum length of 80 characters, mustSupport: true, array: true, min: 1, max: 4, index: 35} city: {short: Maximum length of 10 characters, mustSupport: true, index: 36} state: binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/pcr/ValueSet/province-state-code'} mustSupport: true index: 37 postalCode: {mustSupport: true, index: 38} country: binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/iso3166-1-3'} mustSupport: true index: 39 required: [line, type, use] meta: elements: lastUpdated: {mustSupport: true, index: 0} name: mustSupport: true index: 7 elements: use: {mustSupport: true, index: 8} text: {mustSupport: true, index: 9} family: {short: Maximum length of 75 characters, mustSupport: true, index: 10} given: short: Maximum length of 50 characters mustSupport: true index: 11 slicing: rules: open description: by extension('http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier') discriminator: - {path: 'extension(''http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier'')', type: exists} min: null slices: given-first: match: {} schema: mustSupport: true index: 12 extensions: EN-qualifier: {url: 'http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier', min: 0, max: 0, type: Extension, index: 14} elements: extension: index: 13 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: null slices: EN-qualifier: match: {url: null} schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier', index: 14} min: 0 max: 0 given-middle: match: {} schema: mustSupport: true index: 15 extensions: EN-qualifier: url: http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier type: Extension mustSupport: true index: 17 elements: value: pattern: {type: Code, value: MID} choices: [] index: 19 elements: extension: index: 16 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: 1 slices: EN-qualifier: match: {url: null} schema: type: Extension mustSupport: true url: http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier index: 17 elements: value: pattern: {type: Code, value: MID} choices: [] index: 19 required: [extension] prefix: {short: Maximum length of 20 characters, mustSupport: true, index: 20} suffix: {short: Maximum length of 50 characters, mustSupport: true, index: 21} required: [family] birthDate: {mustSupport: true, index: 28} multipleBirth: mustSupport: true choices: [] index: 42 deceased: mustSupport: true choices: [] index: 30 link: {mustSupport: true, index: 58} active: {mustSupport: true, index: 6} communication: mustSupport: true index: 55 elements: language: binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/pcr/ValueSet/human-language'} mustSupport: true index: 56 preferred: {mustSupport: true, index: 57} identifier: mustSupport: true index: 1 elements: use: {mustSupport: true, index: 2} type: binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/pcr/ValueSet/pcr-patient-identifier-type'} mustSupport: true index: 3 system: {mustSupport: true, index: 4} value: {short: Maximum of 40 characters or 10 characters for HCNs, mustSupport: true, index: 5} required: [value, type, system] telecom: mustSupport: true index: 22 elements: system: {mustSupport: true, index: 23} value: {mustSupport: true, index: 24} use: {mustSupport: true, index: 25} rank: {mustSupport: true, index: 26} required: [value, system, use] gender: {mustSupport: true, index: 27} maritalStatus: {mustSupport: true, index: 40} contact: mustSupport: true index: 43 elements: relationship: {mustSupport: true, index: 44} name: mustSupport: true index: 45 elements: text: {mustSupport: true, index: 46} telecom: mustSupport: true index: 47 elements: system: {mustSupport: true, index: 48} value: {mustSupport: true, index: 49} use: {mustSupport: true, index: 50} rank: {mustSupport: true, index: 51} required: [value] address: mustSupport: true index: 52 elements: text: {mustSupport: true, index: 53} gender: {mustSupport: true, index: 54} required: [relationship, telecom] package_version: 1.0.0-draft1 class: profile kind: resource url: http://ontariohealth.ca/fhir/pcr/StructureDefinition/profile-patient-contribution base: http://hl7.org/fhir/StructureDefinition/Patient version: 1.0.0-draft1 required: [gender, name, identifier]