description: 'R5: `Account.diagnosis` (new:BackboneElement)' package_name: hl7.fhir.uv.xver-r5.r3 derivation: constraint name: ExtensionAccount_Diagnosis type: Extension elements: extension: base: {max: '*', min: 0, path: Extension.extension} array: true min: 1 index: 0 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: 1 slices: sequence: match: {url: sequence} schema: short: 'R5: Ranking of the diagnosis (for each type) (new)' base: {max: '*', min: 0, path: Extension.extension} index: 1 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: sequence} index: 2 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: Ranking of the diagnosis (for each type) choices: [valuePositiveInt] index: 4 valuePositiveInt: short: Ranking of the diagnosis (for each type) type: positiveInt base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 5 required: [url] condition: match: {url: condition} schema: short: 'R5: The diagnosis relevant to the account (new)' _required: true base: {max: '*', min: 0, path: Extension.extension} index: 6 extensions: _datatype: url: http://hl7.org/fhir/StructureDefinition/_datatype base: {max: '*', min: 0, path: Extension.extension} short: DataType slice for a FHIR R5 `CodeableReference` value _required: true index: 8 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/_datatype'} index: 9 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} pattern: {type: String, value: CodeableReference} choices: [valueString] index: 11 valueString: type: string pattern: {type: String, value: CodeableReference} base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 12 required: [url, valueString, value] concept: url: concept short: 'R5: Reference to a concept (by class)' base: {max: '*', min: 0, path: Extension.extension} index: 13 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: concept} index: 14 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: Reference to a concept (by class) choices: [valueCodeableConcept] index: 16 valueCodeableConcept: short: Reference to a concept (by class) type: CodeableConcept base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 17 required: [url] reference: url: reference short: 'R5: Reference to a resource (by instance)' base: {max: '*', min: 0, path: Extension.extension} index: 18 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: reference} index: 19 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: Reference to a resource (by instance) choices: [valueReference, valueReference] index: 21 valueReference: short: Reference to a resource (by instance) refers: ['http://hl7.org/fhir/5.0/StructureDefinition/profile-Condition|0.1.0'] type: Reference base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 22 required: [url] elements: extension: base: {max: '*', min: 0, path: Extension.extension} array: true min: 1 index: 7 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: 1 slices: _datatype: match: {url: 'http://hl7.org/fhir/StructureDefinition/_datatype'} schema: base: {max: '*', min: 0, path: Extension.extension} short: DataType slice for a FHIR R5 `CodeableReference` value _required: true index: 8 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/_datatype'} index: 9 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} pattern: {type: String, value: CodeableReference} choices: [valueString] index: 11 valueString: type: string pattern: {type: String, value: CodeableReference} base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 12 required: [url, valueString, value] concept: match: {url: concept} schema: short: 'R5: Reference to a concept (by class)' base: {max: '*', min: 0, path: Extension.extension} index: 13 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: concept} index: 14 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: Reference to a concept (by class) choices: [valueCodeableConcept] index: 16 valueCodeableConcept: short: Reference to a concept (by class) type: CodeableConcept base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 17 required: [url] reference: match: {url: reference} schema: short: 'R5: Reference to a resource (by instance)' base: {max: '*', min: 0, path: Extension.extension} index: 18 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: reference} index: 19 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: Reference to a resource (by instance) choices: [valueReference, valueReference] index: 21 valueReference: short: Reference to a resource (by instance) refers: ['http://hl7.org/fhir/5.0/StructureDefinition/profile-Condition|0.1.0'] type: Reference base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 22 required: [url] url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: condition} index: 24 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} choices: [] index: 26 required: [url, extension] dateOfDiagnosis: match: {url: dateOfDiagnosis} schema: short: 'R5: Date of the diagnosis (when coded diagnosis) (new)' base: {max: '*', min: 0, path: Extension.extension} index: 27 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: dateOfDiagnosis} index: 28 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: Date of the diagnosis (when coded diagnosis) choices: [valueDateTime] index: 30 valueDateTime: short: Date of the diagnosis (when coded diagnosis) type: dateTime base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 31 required: [url] type: match: {url: type} schema: short: 'R5: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …) (new)' array: true base: {max: '*', min: 0, path: Extension.extension} index: 32 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: type} index: 33 value: short: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …) choices: [valueCodeableConcept] base: {max: '1', min: 0, path: 'Extension.value[x]'} index: 35 valueCodeableConcept: short: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …) type: CodeableConcept base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 36 required: [url] onAdmission: match: {url: onAdmission} schema: short: 'R5: Diagnosis present on Admission (new)' base: {max: '*', min: 0, path: Extension.extension} index: 37 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: onAdmission} index: 38 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: Diagnosis present on Admission choices: [valueBoolean] index: 40 valueBoolean: short: Diagnosis present on Admission type: boolean base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 41 required: [url] packageCode: match: {url: packageCode} schema: short: 'R5: Package Code specific for billing (new)' array: true base: {max: '*', min: 0, path: Extension.extension} index: 42 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: packageCode} index: 43 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: Package Code specific for billing choices: [valueCodeableConcept] index: 45 valueCodeableConcept: short: Package Code specific for billing type: CodeableConcept base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 46 required: [url] url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-Account.diagnosis'} index: 47 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} choices: [] index: 49 package_version: 0.1.0 extensions: sequence: url: sequence short: 'R5: Ranking of the diagnosis (for each type) (new)' base: {max: '*', min: 0, path: Extension.extension} index: 1 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: sequence} index: 2 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: Ranking of the diagnosis (for each type) choices: [valuePositiveInt] index: 4 valuePositiveInt: short: Ranking of the diagnosis (for each type) type: positiveInt base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 5 required: [url] condition: url: condition short: 'R5: The diagnosis relevant to the account (new)' _required: true base: {max: '*', min: 0, path: Extension.extension} index: 6 extensions: _datatype: url: http://hl7.org/fhir/StructureDefinition/_datatype base: {max: '*', min: 0, path: Extension.extension} short: DataType slice for a FHIR R5 `CodeableReference` value _required: true index: 8 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/_datatype'} index: 9 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} pattern: {type: String, value: CodeableReference} choices: [valueString] index: 11 valueString: type: string pattern: {type: String, value: CodeableReference} base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 12 required: [url, valueString, value] concept: url: concept short: 'R5: Reference to a concept (by class)' base: {max: '*', min: 0, path: Extension.extension} index: 13 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: concept} index: 14 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: Reference to a concept (by class) choices: [valueCodeableConcept] index: 16 valueCodeableConcept: short: Reference to a concept (by class) type: CodeableConcept base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 17 required: [url] reference: url: reference short: 'R5: Reference to a resource (by instance)' base: {max: '*', min: 0, path: Extension.extension} index: 18 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: reference} index: 19 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: Reference to a resource (by instance) choices: [valueReference, valueReference] index: 21 valueReference: short: Reference to a resource (by instance) refers: ['http://hl7.org/fhir/5.0/StructureDefinition/profile-Condition|0.1.0'] type: Reference base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 22 required: [url] elements: extension: base: {max: '*', min: 0, path: Extension.extension} array: true min: 1 index: 7 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: 1 slices: _datatype: match: {url: 'http://hl7.org/fhir/StructureDefinition/_datatype'} schema: base: {max: '*', min: 0, path: Extension.extension} short: DataType slice for a FHIR R5 `CodeableReference` value _required: true index: 8 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/_datatype'} index: 9 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} pattern: {type: String, value: CodeableReference} choices: [valueString] index: 11 valueString: type: string pattern: {type: String, value: CodeableReference} base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 12 required: [url, valueString, value] concept: match: {url: concept} schema: short: 'R5: Reference to a concept (by class)' base: {max: '*', min: 0, path: Extension.extension} index: 13 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: concept} index: 14 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: Reference to a concept (by class) choices: [valueCodeableConcept] index: 16 valueCodeableConcept: short: Reference to a concept (by class) type: CodeableConcept base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 17 required: [url] reference: match: {url: reference} schema: short: 'R5: Reference to a resource (by instance)' base: {max: '*', min: 0, path: Extension.extension} index: 18 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: reference} index: 19 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: Reference to a resource (by instance) choices: [valueReference, valueReference] index: 21 valueReference: short: Reference to a resource (by instance) refers: ['http://hl7.org/fhir/5.0/StructureDefinition/profile-Condition|0.1.0'] type: Reference base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 22 required: [url] url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: condition} index: 24 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} choices: [] index: 26 required: [url, extension] dateOfDiagnosis: url: dateOfDiagnosis short: 'R5: Date of the diagnosis (when coded diagnosis) (new)' base: {max: '*', min: 0, path: Extension.extension} index: 27 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: dateOfDiagnosis} index: 28 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: Date of the diagnosis (when coded diagnosis) choices: [valueDateTime] index: 30 valueDateTime: short: Date of the diagnosis (when coded diagnosis) type: dateTime base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 31 required: [url] type: url: type short: 'R5: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …) (new)' array: true base: {max: '*', min: 0, path: Extension.extension} index: 32 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: type} index: 33 value: short: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …) choices: [valueCodeableConcept] base: {max: '1', min: 0, path: 'Extension.value[x]'} index: 35 valueCodeableConcept: short: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …) type: CodeableConcept base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 36 required: [url] onAdmission: url: onAdmission short: 'R5: Diagnosis present on Admission (new)' base: {max: '*', min: 0, path: Extension.extension} index: 37 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: onAdmission} index: 38 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: Diagnosis present on Admission choices: [valueBoolean] index: 40 valueBoolean: short: Diagnosis present on Admission type: boolean base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 41 required: [url] packageCode: url: packageCode short: 'R5: Package Code specific for billing (new)' array: true base: {max: '*', min: 0, path: Extension.extension} index: 42 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: packageCode} index: 43 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: Package Code specific for billing choices: [valueCodeableConcept] index: 45 valueCodeableConcept: short: Package Code specific for billing type: CodeableConcept base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 46 required: [url] class: extension kind: complex-type url: http://hl7.org/fhir/5.0/StructureDefinition/extension-Account.diagnosis base: http://hl7.org/fhir/StructureDefinition/Extension version: 0.1.0 required: [url, extension]