description: This profile extends the US core patient to add a constraint that expects the Location.type to always be present, and expects at least one Implementation Curated Site. package_name: fhir.deep6.ai derivation: constraint name: Deep6AIRaceExtension type: Extension elements: extension: index: 0 slicing: rules: open discriminator: - {path: url, type: value} min: 1 slices: ombCategory: match: {url: ombCategory} schema: min: 1 short: (USCDI) American Indian or Alaska Native|Asian|Black or African American|Native Hawaiian or Other Pacific Islander|White index: 1 type: Extension mustSupport: true array: true elements: url: type: uri pattern: {type: uri, value: ombCategory} index: 2 value: constraint: race-ombCategory-code-constraint: {human: OmbCategory valueCoding must include either a code or a display value, severity: error, expression: code or display} choices: [valueCoding] index: 4 valueCoding: type: Coding constraint: race-ombCategory-code-constraint: {human: OmbCategory valueCoding must include either a code or a display value, severity: error, expression: code or display} choiceOf: value index: 5 _required: true max: 5 required: [url, value, valueCoding] detailed: match: {url: detailed} schema: short: Extended race codes type: Extension array: true index: 6 elements: url: type: uri pattern: {type: uri, value: detailed} index: 7 value: choices: [valueCoding] index: 9 valueCoding: {type: Coding, choiceOf: value, index: 10} required: [url, value, valueCoding] text: match: {url: text} schema: short: (USCDI) Race Text type: Extension mustSupport: true _required: true index: 11 elements: url: type: uri pattern: {type: uri, value: text} index: 12 value: choices: [valueString] index: 14 valueString: {type: string, choiceOf: value, index: 15} required: [url, value, valueString] url: pattern: {type: uri, value: 'http://deep6.ai/fhir/StructureDefinition/deep-6-ai-race-1.0.1'} type: uri index: 16 value: choices: [] index: 18 package_version: 1.0.1 extensions: ombCategory: min: 1 short: (USCDI) American Indian or Alaska Native|Asian|Black or African American|Native Hawaiian or Other Pacific Islander|White index: 1 type: Extension mustSupport: true array: true elements: url: type: uri pattern: {type: uri, value: ombCategory} index: 2 value: constraint: race-ombCategory-code-constraint: {human: OmbCategory valueCoding must include either a code or a display value, severity: error, expression: code or display} choices: [valueCoding] index: 4 valueCoding: type: Coding constraint: race-ombCategory-code-constraint: {human: OmbCategory valueCoding must include either a code or a display value, severity: error, expression: code or display} choiceOf: value index: 5 _required: true max: 5 url: ombCategory required: [url, value, valueCoding] detailed: url: detailed short: Extended race codes type: Extension array: true index: 6 elements: url: type: uri pattern: {type: uri, value: detailed} index: 7 value: choices: [valueCoding] index: 9 valueCoding: {type: Coding, choiceOf: value, index: 10} required: [url, value, valueCoding] text: url: text short: (USCDI) Race Text type: Extension mustSupport: true _required: true index: 11 elements: url: type: uri pattern: {type: uri, value: text} index: 12 value: choices: [valueString] index: 14 valueString: {type: string, choiceOf: value, index: 15} required: [url, value, valueString] class: extension kind: complex-type url: http://deep6.ai/fhir/StructureDefinition/deep-6-ai-race-1.0.1 base: http://hl7.org/fhir/StructureDefinition/Extension version: 1.0.1 required: [extension, url]