國家級人體生物資料庫整合平台共同資料模式實作指引(NBCT Common Data Model IG)
0.1.0 - trial-use

Publication Build: This will be filled in by the publication tooling

## Resource Profile: Condition CRLF-原發性癌症情況

Official URL: https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/Condition-Primary | Version: 0.1.0
Active as of 2024-09-01 | Computable Name: ConditionPrimaryCancer

此Profile用於描述癌症登記長表資料檔(CRLF)之原發性癌症情況

Usage:

- Refer to this Resource Profile: Extension CRLF-Condition Related, Observation CRLF-臨床期別, Observation CRLF-臨床分期字根/字首, Observation CRLF-臨床M... Show 37 more, Observation CRLF-臨床N, Observation CRLF-臨床T, Observation CRLF-癌症部位特定因子1(ssf1), Observation CRLF-癌症部位特定因子10(ssf10), Observation CRLF-癌症部位特定因子2(ssf2), Observation CRLF-癌症部位特定因子3(ssf3), Observation CRLF-癌症部位特定因子4(ssf4), Observation CRLF-癌症部位特定因子5(ssf5), Observation CRLF-癌症部位特定因子6(ssf6), Observation CRLF-癌症部位特定因子7(ssf7), Observation CRLF-癌症部位特定因子8(ssf8), Observation CRLF-癌症部位特定因子9(ssf9), Observation CRLF-病理期別, Observation CRLF-病理分期字根/字首, Observation CRLF-病理M, Observation CRLF-病理N, Observation CRLF-病理T, Procedure CRLF-(申報醫院/外院)診斷性及分期性手術處置, Procedure CRLF-體外放射治療資料, Procedure CRLF-申報醫院化學治療, Procedure CRLF-外院化學治療, Procedure CRLF-申報醫院荷爾蒙/類固醇治療, Procedure CRLF-外院荷爾蒙/類固醇治療, Procedure CRLF-申報醫院免疫治療, Procedure CRLF-外院免疫治療, Procedure CRLF-骨隨/幹細胞移植或內分泌處置, Procedure CRLF-申報醫院標靶治療, Procedure CRLF-外院標靶治療, Procedure CRLF-其他治療, Procedure CRLF-區域治療與全身性治療順序, Procedure CRLF-微創手術, Procedure CRLF-放射治療資料, Procedure CRLF-放射治療與手術順序, Procedure CRLF-其他部位手術方式, Procedure CRLF-原發部位手術方式, Procedure CRLF-區域淋巴結手術範圍 and Procedure CRLF-全身性治療開始日期

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Condition | C | 0..* | Condition | Detailed information about conditions, problems or diagnoses con-3: Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item con-4: If condition is abated, then clinicalStatus must be either inactive, resolved, or remission con-5: Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated dom-5: If a resource is contained in another resource, it SHALL NOT have a security label dom-6: A resource should have narrative for robust management
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created ele-1: All FHIR elements must have a @value or children
Slices for extension |  |  |  | Content/Rules for all slices
assertedDate | S | 0..1 | (Complex) | 最初診斷日期 URL: http://hl7.org/fhir/StructureDefinition/condition-assertedDate ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
extension |  | 0..0 |  |
url |  | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/condition-assertedDate"
value[x] |  | 1..1 | dateTime | 最初診斷日期。[LF.didiag] ele-1: All FHIR elements must have a @value or children
crlfHist | S | 0..* | CodeableConcept | Extension URL: https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/CRLF-Hist ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
crlfBehavior | S | 0..* | CodeableConcept | Extension URL: https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/CRLF-Behavior ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
clinicalStatus | ?!Σ C | 0..1 | CodeableConcept | active | recurrence | relapse | inactive | remission | resolved Binding: ConditionClinicalStatusCodes (required): The clinical status of the condition or diagnosis. ele-1: All FHIR elements must have a @value or children
verificationStatus | ?!Σ C | 0..1 | CodeableConcept | unconfirmed | provisional | differential | confirmed | refuted | entered-in-error Binding: ConditionVerificationStatus (required): The verification status to support or decline the clinical status of the condition or diagnosis. ele-1: All FHIR elements must have a @value or children
Slices for category | S | 3..* | CodeableConcept | problem-list-item | encounter-diagnosis Slice: Unordered, Open by pattern:coding.system Binding: ConditionCategoryCodes (extensible): A category assigned to the condition. ele-1: All FHIR elements must have a @value or children
category:Class | S | 1..1 | CodeableConcept | 個案分類 Binding: ConditionCategoryCodes (extensible): A category assigned to the condition. ele-1: All FHIR elements must have a @value or children
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 個案分類值集 (required): 個案分類；應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
system | S Σ | 1..1 | uri | Identity of the terminology system ele-1: All FHIR elements must have a @value or children Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Class
code | S Σ | 1..1 | code | 個案分類。[CRLF.class] ele-1: All FHIR elements must have a @value or children
text | S Σ | 0..1 | string | 個案分類。[CRLF.class] ele-1: All FHIR elements must have a @value or children
category:Class_d | S | 1..1 | CodeableConcept | 診斷狀態分類 Binding: ConditionCategoryCodes (extensible): A category assigned to the condition. ele-1: All FHIR elements must have a @value or children
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 診斷狀態分類值集 (required): 診斷狀態分類；應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
system | S Σ | 1..1 | uri | Identity of the terminology system ele-1: All FHIR elements must have a @value or children Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-ClassDiagnosis
code | S Σ | 1..1 | code | 診斷狀態分類。[LF.class_d] ele-1: All FHIR elements must have a @value or children
text | S Σ | 0..1 | string | 診斷狀態分類。[LF.class_d] ele-1: All FHIR elements must have a @value or children
category:Class_T | S | 1..1 | CodeableConcept | 治療狀態分類 Binding: ConditionCategoryCodes (extensible): A category assigned to the condition. ele-1: All FHIR elements must have a @value or children
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 治療狀態分類值集 (required): 治療狀態分類；應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
system | S Σ | 1..1 | uri | Identity of the terminology system ele-1: All FHIR elements must have a @value or children Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Treatment
code | S Σ | 1..1 | code | 治療狀態分類。[LF.class_t] ele-1: All FHIR elements must have a @value or children
text | Σ | 0..1 | string | 治療狀態分類。[LF.class_t] ele-1: All FHIR elements must have a @value or children
Slices for bodySite | S Σ | 2..* | CodeableConcept | Anatomical location, if relevant Slice: Unordered, Open by pattern:$this Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality. ele-1: All FHIR elements must have a @value or children
bodySite:Site | S Σ | 1..1 | CodeableConcept | 原發部位 Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality. ele-1: All FHIR elements must have a @value or children
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 原發部位值集 (required): 原發部位值集；應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
system | S Σ | 1..1 | uri | Identity of the terminology system ele-1: All FHIR elements must have a @value or children Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/CodeSystem/CRLF-Site
code | S Σ | 1..1 | code | 原發部位。[LF.site] ele-1: All FHIR elements must have a @value or children
text | S Σ | 0..1 | string | 原發部位。[LF.site] ele-1: All FHIR elements must have a @value or children
bodySite:Lateral | S Σ | 1..1 | CodeableConcept | 側性 Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality. ele-1: All FHIR elements must have a @value or children
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 側性值集 (required): 側性值集；應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
system | S Σ | 1..1 | uri | Identity of the terminology system ele-1: All FHIR elements must have a @value or children Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Lateral
code | S Σ | 1..1 | code | 側性。[LF.lateral] ele-1: All FHIR elements must have a @value or children
text | S Σ | 0..1 | string | 側性。[LF.lateral] ele-1: All FHIR elements must have a @value or children
subject | S Σ | 1..1 | Reference(Patient CRLF-病患基本資料) | Who has the condition? ele-1: All FHIR elements must have a @value or children
reference | S Σ C | 1..1 | string | 患者 Resource Link ele-1: All FHIR elements must have a @value or children
onset[x] | S Σ | 1..1 | Age | 診斷年齡。[LF.age] ele-1: All FHIR elements must have a @value or children
value | S Σ | 0..1 | decimal | 診斷年齡。[LF.age] ele-1: All FHIR elements must have a @value or children
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented. ele-1: All FHIR elements must have a @value or children
unit | S Σ | 1..1 | string | Unit representation ele-1: All FHIR elements must have a @value or children Fixed Value: years
system | S Σ C | 1..1 | uri | System that defines coded unit form ele-1: All FHIR elements must have a @value or children Fixed Value: http://unitsofmeasure.org
code | S Σ | 1..1 | code | Coded form of the unit ele-1: All FHIR elements must have a @value or children Fixed Value: a
recordedDate | S Σ | 1..1 | dateTime | 首次就診日期。[LF.dcont] ele-1: All FHIR elements must have a @value or children
stage | S C | 1..* | BackboneElement | Stage/grade, usually assessed formally con-1: Stage SHALL have summary or assessment ele-1: All FHIR elements must have a @value or children
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
summary | S C | 0..1 | CodeableConcept | Simple summary (disease specific) Binding: ConditionStage (example): Codes describing condition stages (e.g. Cancer stages). ele-1: All FHIR elements must have a @value or children
coding | S Σ | 0..* | Coding | Code defined by a terminology system ele-1: All FHIR elements must have a @value or children
system | S Σ | 1..1 | uri | Identity of the terminology system ele-1: All FHIR elements must have a @value or children
code | S Σ | 1..1 | code | "臨床分級/分化"或"病理分級/分化"，[LF.grade_c/LF.grade_p]。擇一使用。 ele-1: All FHIR elements must have a @value or children
text | S Σ | 0..1 | string | "臨床分級/分化"或"病理分級/分化"。擇一使用 ele-1: All FHIR elements must have a @value or children
assessment | S C | 0..* | Reference(ClinicalImpression | DiagnosticReport | CRLF Observation-臨床分級/分化 | CRLF Observation-病理分級/分化) | Formal record of assessment ele-1: All FHIR elements must have a @value or children
reference | S Σ C | 1..1 | string | "臨床分級/分化"或"病理分級/分化"之Resource Link ele-1: All FHIR elements must have a @value or children
evidence | S C | 1..* | BackboneElement | Supporting evidence con-2: evidence SHALL have code or details ele-1: All FHIR elements must have a @value or children
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
code | S Σ C | 1..* | CodeableConcept | Manifestation/symptom Binding: ManifestationAndSymptomCodes (example): Codes that describe the manifestation or symptoms of a condition. ele-1: All FHIR elements must have a @value or children
coding | S Σ | 0..* | Coding | Code defined by a terminology system ele-1: All FHIR elements must have a @value or children
system | S Σ | 1..1 | uri | Identity of the terminology system ele-1: All FHIR elements must have a @value or children
code | S Σ | 1..1 | code | 癌症確診方式。[CRLF.confirm] ele-1: All FHIR elements must have a @value or children
text | S Σ | 0..1 | string | 癌症確診方式。[CRLF.confirm] ele-1: All FHIR elements must have a @value or children
note | S | 1..1 | Annotation | Additional information about the Condition ele-1: All FHIR elements must have a @value or children
text | S Σ | 1..1 | markdown | 癌症發生順序號碼。[LF.sequence] ele-1: All FHIR elements must have a @value or children
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Condition.clinicalStatus | required | ConditionClinicalStatusCodes `http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1` from the FHIR Standard
Condition.verificationStatus | required | ConditionVerificationStatus `http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1` from the FHIR Standard
Condition.category | extensible | ConditionCategoryCodes `http://hl7.org/fhir/ValueSet/condition-category` from the FHIR Standard
Condition.category:Class | extensible | ConditionCategoryCodes `http://hl7.org/fhir/ValueSet/condition-category` from the FHIR Standard
Condition.category:Class.coding | required | CRLFClassValueSet (a valid code from CRLF個案分類) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Class` from this IG
Condition.category:Class_d | extensible | ConditionCategoryCodes `http://hl7.org/fhir/ValueSet/condition-category` from the FHIR Standard
Condition.category:Class_d.coding | required | CRLFClassDiagnosisValueSet (a valid code from 診斷狀態分類代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-ClassDiagnosis` from this IG
Condition.category:Class_T | extensible | ConditionCategoryCodes `http://hl7.org/fhir/ValueSet/condition-category` from the FHIR Standard
Condition.category:Class_T.coding | required | CRLFTreatmentValueSet (a valid code from 治療狀態分類代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Treatment` from this IG
Condition.bodySite | example | SNOMEDCTBodyStructures `http://hl7.org/fhir/ValueSet/body-site` from the FHIR Standard
Condition.bodySite:Site | example | SNOMEDCTBodyStructures `http://hl7.org/fhir/ValueSet/body-site` from the FHIR Standard
Condition.bodySite:Site.coding | required | CRLFSiteValueSet (a valid code from 原發部位代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Site` from this IG
Condition.bodySite:Lateral | example | SNOMEDCTBodyStructures `http://hl7.org/fhir/ValueSet/body-site` from the FHIR Standard
Condition.bodySite:Lateral.coding | required | CRLFLateralValueSet (a valid code from 側性代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Lateral` from this IG
Condition.onset[x].comparator | required | QuantityComparator `http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1` from the FHIR Standard
Condition.stage.summary | example | ConditionStage `http://hl7.org/fhir/ValueSet/condition-stage` from the FHIR Standard
Condition.evidence.code | example | ManifestationAndSymptomCodes `http://hl7.org/fhir/ValueSet/manifestation-or-symptom` from the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
con-1 | error | Condition.stage | Stage SHALL have summary or assessment : summary.exists() or assessment.exists() |
con-2 | error | Condition.evidence | evidence SHALL have code or details : code.exists() or detail.exists() |
con-3 | best practice | Condition | Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item : clinicalStatus.exists() or verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'entered-in-error').exists() or category.select($this='problem-list-item').empty() |
con-4 | error | Condition | If condition is abated, then clinicalStatus must be either inactive, resolved, or remission : abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists() |
con-5 | error | Condition | Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error : verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty() |
dom-2 | error | Condition | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Condition | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Condition | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |

This structure is derived from Condition

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Condition |  | 0..* | Condition | Detailed information about conditions, problems or diagnoses
Slices for extension |  |  |  | Content/Rules for all slices
assertedDate | S | 0..1 | (Complex) | 最初診斷日期 URL: http://hl7.org/fhir/StructureDefinition/condition-assertedDate
value[x] |  | 1..1 | dateTime | 最初診斷日期。[LF.didiag]
crlfHist | S | 0..* | CodeableConcept | Extension URL: https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/CRLF-Hist
crlfBehavior | S | 0..* | CodeableConcept | Extension URL: https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/CRLF-Behavior
Slices for category | S | 3..* | CodeableConcept | problem-list-item | encounter-diagnosis Slice: Unordered, Open by pattern:coding.system
category:Class | S | 1..1 | CodeableConcept | 個案分類
coding | S | 1..* | Coding | Code defined by a terminology system Binding: 個案分類值集 (required): 個案分類；應填入所綁定值集中的其中一個代碼。
system | S | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Class
code | S | 1..1 | code | 個案分類。[CRLF.class]
text | S | 0..1 | string | 個案分類。[CRLF.class]
category:Class_d | S | 1..1 | CodeableConcept | 診斷狀態分類
coding | S | 1..* | Coding | Code defined by a terminology system Binding: 診斷狀態分類值集 (required): 診斷狀態分類；應填入所綁定值集中的其中一個代碼。
system | S | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-ClassDiagnosis
code | S | 1..1 | code | 診斷狀態分類。[LF.class_d]
text | S | 0..1 | string | 診斷狀態分類。[LF.class_d]
category:Class_T | S | 1..1 | CodeableConcept | 治療狀態分類
coding | S | 1..* | Coding | Code defined by a terminology system Binding: 治療狀態分類值集 (required): 治療狀態分類；應填入所綁定值集中的其中一個代碼。
system | S | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Treatment
code | S | 1..1 | code | 治療狀態分類。[LF.class_t]
text |  | 0..1 | string | 治療狀態分類。[LF.class_t]
Slices for bodySite | S | 2..* | CodeableConcept | Anatomical location, if relevant Slice: Unordered, Open by pattern:$this
bodySite:Site | S | 1..1 | CodeableConcept | 原發部位
coding | S | 1..* | Coding | Code defined by a terminology system Binding: 原發部位值集 (required): 原發部位值集；應填入所綁定值集中的其中一個代碼。
system | S | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/CodeSystem/CRLF-Site
code | S | 1..1 | code | 原發部位。[LF.site]
text | S | 0..1 | string | 原發部位。[LF.site]
bodySite:Lateral | S | 1..1 | CodeableConcept | 側性
coding | S | 1..* | Coding | Code defined by a terminology system Binding: 側性值集 (required): 側性值集；應填入所綁定值集中的其中一個代碼。
system | S | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Lateral
code | S | 1..1 | code | 側性。[LF.lateral]
text | S | 0..1 | string | 側性。[LF.lateral]
subject | S | 1..1 | Reference(Patient CRLF-病患基本資料) | Who has the condition?
reference | S | 1..1 | string | 患者 Resource Link
onset[x] | S | 1..1 | Age | 診斷年齡。[LF.age]
value | S | 0..1 | decimal | 診斷年齡。[LF.age]
unit | S | 1..1 | string | Unit representation Fixed Value: years
system | S | 1..1 | uri | System that defines coded unit form Fixed Value: http://unitsofmeasure.org
code | S | 1..1 | code | Coded form of the unit Fixed Value: a
recordedDate | S | 1..1 | dateTime | 首次就診日期。[LF.dcont]
stage | S | 1..* | BackboneElement | Stage/grade, usually assessed formally
summary | S | 0..1 | CodeableConcept | Simple summary (disease specific)
coding | S | 0..* | Coding | Code defined by a terminology system
system | S | 1..1 | uri | Identity of the terminology system
code | S | 1..1 | code | "臨床分級/分化"或"病理分級/分化"，[LF.grade_c/LF.grade_p]。擇一使用。
text | S | 0..1 | string | "臨床分級/分化"或"病理分級/分化"。擇一使用
assessment | S | 0..* | Reference(ClinicalImpression | DiagnosticReport | CRLF Observation-臨床分級/分化 | CRLF Observation-病理分級/分化) | Formal record of assessment
reference | S | 1..1 | string | "臨床分級/分化"或"病理分級/分化"之Resource Link
evidence | S | 1..* | BackboneElement | Supporting evidence
code | S | 1..* | CodeableConcept | Manifestation/symptom
coding | S | 0..* | Coding | Code defined by a terminology system
system | S | 1..1 | uri | Identity of the terminology system
code | S | 1..1 | code | 癌症確診方式。[CRLF.confirm]
text | S | 0..1 | string | 癌症確診方式。[CRLF.confirm]
note | S | 1..1 | Annotation | Additional information about the Condition
text | S | 1..1 | markdown | 癌症發生順序號碼。[LF.sequence]
Documentation for this format

#### Terminology Bindings (Differential)

Path | Conformance | ValueSet | URI
Condition.category:Class.coding | required | CRLFClassValueSet (a valid code from CRLF個案分類) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Class` from this IG
Condition.category:Class_d.coding | required | CRLFClassDiagnosisValueSet (a valid code from 診斷狀態分類代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-ClassDiagnosis` from this IG
Condition.category:Class_T.coding | required | CRLFTreatmentValueSet (a valid code from 治療狀態分類代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Treatment` from this IG
Condition.bodySite:Site.coding | required | CRLFSiteValueSet (a valid code from 原發部位代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Site` from this IG
Condition.bodySite:Lateral.coding | required | CRLFLateralValueSet (a valid code from 側性代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Lateral` from this IG

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Condition | C | 0..* | Condition | Detailed information about conditions, problems or diagnoses con-3: Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item con-4: If condition is abated, then clinicalStatus must be either inactive, resolved, or remission con-5: Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
assertedDate | S | 0..1 | (Complex) | 最初診斷日期 URL: http://hl7.org/fhir/StructureDefinition/condition-assertedDate
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..0 |  |
url |  | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/condition-assertedDate"
value[x] |  | 1..1 | dateTime | 最初診斷日期。[LF.didiag]
crlfHist | S | 0..* | CodeableConcept | Extension URL: https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/CRLF-Hist
crlfBehavior | S | 0..* | CodeableConcept | Extension URL: https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/CRLF-Behavior
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | External Ids for this condition
clinicalStatus | ?!Σ C | 0..1 | CodeableConcept | active | recurrence | relapse | inactive | remission | resolved Binding: ConditionClinicalStatusCodes (required): The clinical status of the condition or diagnosis.
verificationStatus | ?!Σ C | 0..1 | CodeableConcept | unconfirmed | provisional | differential | confirmed | refuted | entered-in-error Binding: ConditionVerificationStatus (required): The verification status to support or decline the clinical status of the condition or diagnosis.
Slices for category | S | 3..* | CodeableConcept | problem-list-item | encounter-diagnosis Slice: Unordered, Open by pattern:coding.system Binding: ConditionCategoryCodes (extensible): A category assigned to the condition.
category:Class | S | 1..1 | CodeableConcept | 個案分類 Binding: ConditionCategoryCodes (extensible): A category assigned to the condition.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 個案分類值集 (required): 個案分類；應填入所綁定值集中的其中一個代碼。
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Class
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | 個案分類。[CRLF.class]
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | 個案分類。[CRLF.class]
category:Class_d | S | 1..1 | CodeableConcept | 診斷狀態分類 Binding: ConditionCategoryCodes (extensible): A category assigned to the condition.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 診斷狀態分類值集 (required): 診斷狀態分類；應填入所綁定值集中的其中一個代碼。
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-ClassDiagnosis
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | 診斷狀態分類。[LF.class_d]
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | 診斷狀態分類。[LF.class_d]
category:Class_T | S | 1..1 | CodeableConcept | 治療狀態分類 Binding: ConditionCategoryCodes (extensible): A category assigned to the condition.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 治療狀態分類值集 (required): 治療狀態分類；應填入所綁定值集中的其中一個代碼。
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Treatment
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | 治療狀態分類。[LF.class_t]
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | Σ | 0..1 | string | 治療狀態分類。[LF.class_t]
severity |  | 0..1 | CodeableConcept | Subjective severity of condition Binding: Condition/DiagnosisSeverity (preferred): A subjective assessment of the severity of the condition as evaluated by the clinician.
code | Σ | 0..1 | CodeableConcept | Identification of the condition, problem or diagnosis Binding: Condition/Problem/DiagnosisCodes (example): Identification of the condition or diagnosis.
Slices for bodySite | S Σ | 2..* | CodeableConcept | Anatomical location, if relevant Slice: Unordered, Open by pattern:$this Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
bodySite:Site | S Σ | 1..1 | CodeableConcept | 原發部位 Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 原發部位值集 (required): 原發部位值集；應填入所綁定值集中的其中一個代碼。
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/CodeSystem/CRLF-Site
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | 原發部位。[LF.site]
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | 原發部位。[LF.site]
bodySite:Lateral | S Σ | 1..1 | CodeableConcept | 側性 Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 側性值集 (required): 側性值集；應填入所綁定值集中的其中一個代碼。
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Lateral
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | 側性。[LF.lateral]
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | 側性。[LF.lateral]
subject | S Σ | 1..1 | Reference(Patient CRLF-病患基本資料) | Who has the condition?
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | 患者 Resource Link
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
encounter | Σ | 0..1 | Reference(Encounter) | Encounter created as part of
onset[x] | S Σ | 1..1 | Age | 診斷年齡。[LF.age]
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 0..1 | decimal | 診斷年齡。[LF.age]
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 1..1 | string | Unit representation Fixed Value: years
system | S Σ C | 1..1 | uri | System that defines coded unit form Fixed Value: http://unitsofmeasure.org
code | S Σ | 1..1 | code | Coded form of the unit Fixed Value: a
abatement[x] | C | 0..1 |  | When in resolution/remission
abatementDateTime |  |  | dateTime |
abatementAge |  |  | Age |
abatementPeriod |  |  | Period |
abatementRange |  |  | Range |
abatementString |  |  | string |
recordedDate | S Σ | 1..1 | dateTime | 首次就診日期。[LF.dcont]
recorder | Σ | 0..1 | Reference(Practitioner | PractitionerRole | Patient | RelatedPerson) | Who recorded the condition
asserter | Σ | 0..1 | Reference(Practitioner | PractitionerRole | Patient | RelatedPerson) | Person who asserts this condition
stage | S C | 1..* | BackboneElement | Stage/grade, usually assessed formally con-1: Stage SHALL have summary or assessment
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
summary | S C | 0..1 | CodeableConcept | Simple summary (disease specific) Binding: ConditionStage (example): Codes describing condition stages (e.g. Cancer stages).
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 0..* | Coding | Code defined by a terminology system
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | "臨床分級/分化"或"病理分級/分化"，[LF.grade_c/LF.grade_p]。擇一使用。
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | "臨床分級/分化"或"病理分級/分化"。擇一使用
assessment | S C | 0..* | Reference(ClinicalImpression | DiagnosticReport | CRLF Observation-臨床分級/分化 | CRLF Observation-病理分級/分化) | Formal record of assessment
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | "臨床分級/分化"或"病理分級/分化"之Resource Link
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
type |  | 0..1 | CodeableConcept | Kind of staging Binding: ConditionStageType (example): Codes describing the kind of condition staging (e.g. clinical or pathological).
evidence | S C | 1..* | BackboneElement | Supporting evidence con-2: evidence SHALL have code or details
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S Σ C | 1..* | CodeableConcept | Manifestation/symptom Binding: ManifestationAndSymptomCodes (example): Codes that describe the manifestation or symptoms of a condition.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 0..* | Coding | Code defined by a terminology system
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | 癌症確診方式。[CRLF.confirm]
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | 癌症確診方式。[CRLF.confirm]
detail | Σ C | 0..* | Reference(Resource) | Supporting information found elsewhere
note | S | 1..1 | Annotation | Additional information about the Condition
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
author[x] | Σ | 0..1 |  | Individual responsible for the annotation
authorReference |  |  | Reference(Practitioner | Patient | RelatedPerson | Organization) |
authorString |  |  | string |
time | Σ | 0..1 | dateTime | When the annotation was made
text | S Σ | 1..1 | markdown | 癌症發生順序號碼。[LF.sequence]
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Condition.language | preferred | CommonLanguages `http://hl7.org/fhir/ValueSet/languages` from the FHIR Standard
Additional Bindings | Purpose
AllLanguages | Max Binding
Condition.clinicalStatus | required | ConditionClinicalStatusCodes `http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1` from the FHIR Standard
Condition.verificationStatus | required | ConditionVerificationStatus `http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1` from the FHIR Standard
Condition.category | extensible | ConditionCategoryCodes `http://hl7.org/fhir/ValueSet/condition-category` from the FHIR Standard
Condition.category:Class | extensible | ConditionCategoryCodes `http://hl7.org/fhir/ValueSet/condition-category` from the FHIR Standard
Condition.category:Class.coding | required | CRLFClassValueSet (a valid code from CRLF個案分類) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Class` from this IG
Condition.category:Class_d | extensible | ConditionCategoryCodes `http://hl7.org/fhir/ValueSet/condition-category` from the FHIR Standard
Condition.category:Class_d.coding | required | CRLFClassDiagnosisValueSet (a valid code from 診斷狀態分類代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-ClassDiagnosis` from this IG
Condition.category:Class_T | extensible | ConditionCategoryCodes `http://hl7.org/fhir/ValueSet/condition-category` from the FHIR Standard
Condition.category:Class_T.coding | required | CRLFTreatmentValueSet (a valid code from 治療狀態分類代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Treatment` from this IG
Condition.severity | preferred | Condition/DiagnosisSeverity `http://hl7.org/fhir/ValueSet/condition-severity` from the FHIR Standard
Condition.code | example | Condition/Problem/DiagnosisCodes `http://hl7.org/fhir/ValueSet/condition-code` from the FHIR Standard
Condition.bodySite | example | SNOMEDCTBodyStructures `http://hl7.org/fhir/ValueSet/body-site` from the FHIR Standard
Condition.bodySite:Site | example | SNOMEDCTBodyStructures `http://hl7.org/fhir/ValueSet/body-site` from the FHIR Standard
Condition.bodySite:Site.coding | required | CRLFSiteValueSet (a valid code from 原發部位代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Site` from this IG
Condition.bodySite:Lateral | example | SNOMEDCTBodyStructures `http://hl7.org/fhir/ValueSet/body-site` from the FHIR Standard
Condition.bodySite:Lateral.coding | required | CRLFLateralValueSet (a valid code from 側性代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Lateral` from this IG
Condition.subject.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types` from the FHIR Standard
Condition.onset[x].comparator | required | QuantityComparator `http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1` from the FHIR Standard
Condition.stage.summary | example | ConditionStage `http://hl7.org/fhir/ValueSet/condition-stage` from the FHIR Standard
Condition.stage.assessment.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types` from the FHIR Standard
Condition.stage.type | example | ConditionStageType `http://hl7.org/fhir/ValueSet/condition-stage-type` from the FHIR Standard
Condition.evidence.code | example | ManifestationAndSymptomCodes `http://hl7.org/fhir/ValueSet/manifestation-or-symptom` from the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
con-1 | error | Condition.stage | Stage SHALL have summary or assessment : summary.exists() or assessment.exists() |
con-2 | error | Condition.evidence | evidence SHALL have code or details : code.exists() or detail.exists() |
con-3 | best practice | Condition | Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item : clinicalStatus.exists() or verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'entered-in-error').exists() or category.select($this='problem-list-item').empty() |
con-4 | error | Condition | If condition is abated, then clinicalStatus must be either inactive, resolved, or remission : abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists() |
con-5 | error | Condition | Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error : verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty() |
dom-2 | error | Condition | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Condition | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Condition | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |

This structure is derived from Condition

Summary

Mandatory: 30 elements(5 nested mandatory elements)
Must-Support: 53 elements
Fixed: 3 elements

Structures

This structure refers to these other structures:

- Patient CRLF-病患基本資料 (https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/PatientCRLF)
- CRLF Observation-臨床分級/分化 (https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/Observation-GradeClinical)
- CRLF Observation-病理分級/分化 (https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/Observation-GradePathology)

Extensions

This structure refers to these extensions:

- http://hl7.org/fhir/StructureDefinition/condition-assertedDate
- https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/CRLF-Hist
- https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/CRLF-Behavior

Slices

This structure defines the following Slices:

- The element 1 is sliced based on the value of Condition.category
- The element 1 is sliced based on the value of Condition.bodySite

Key Elements View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Condition | C | 0..* | Condition | Detailed information about conditions, problems or diagnoses con-3: Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item con-4: If condition is abated, then clinicalStatus must be either inactive, resolved, or remission con-5: Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated dom-5: If a resource is contained in another resource, it SHALL NOT have a security label dom-6: A resource should have narrative for robust management
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created ele-1: All FHIR elements must have a @value or children
Slices for extension |  |  |  | Content/Rules for all slices
assertedDate | S | 0..1 | (Complex) | 最初診斷日期 URL: http://hl7.org/fhir/StructureDefinition/condition-assertedDate ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
extension |  | 0..0 |  |
url |  | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/condition-assertedDate"
value[x] |  | 1..1 | dateTime | 最初診斷日期。[LF.didiag] ele-1: All FHIR elements must have a @value or children
crlfHist | S | 0..* | CodeableConcept | Extension URL: https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/CRLF-Hist ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
crlfBehavior | S | 0..* | CodeableConcept | Extension URL: https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/CRLF-Behavior ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
clinicalStatus | ?!Σ C | 0..1 | CodeableConcept | active | recurrence | relapse | inactive | remission | resolved Binding: ConditionClinicalStatusCodes (required): The clinical status of the condition or diagnosis. ele-1: All FHIR elements must have a @value or children
verificationStatus | ?!Σ C | 0..1 | CodeableConcept | unconfirmed | provisional | differential | confirmed | refuted | entered-in-error Binding: ConditionVerificationStatus (required): The verification status to support or decline the clinical status of the condition or diagnosis. ele-1: All FHIR elements must have a @value or children
Slices for category | S | 3..* | CodeableConcept | problem-list-item | encounter-diagnosis Slice: Unordered, Open by pattern:coding.system Binding: ConditionCategoryCodes (extensible): A category assigned to the condition. ele-1: All FHIR elements must have a @value or children
category:Class | S | 1..1 | CodeableConcept | 個案分類 Binding: ConditionCategoryCodes (extensible): A category assigned to the condition. ele-1: All FHIR elements must have a @value or children
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 個案分類值集 (required): 個案分類；應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
system | S Σ | 1..1 | uri | Identity of the terminology system ele-1: All FHIR elements must have a @value or children Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Class
code | S Σ | 1..1 | code | 個案分類。[CRLF.class] ele-1: All FHIR elements must have a @value or children
text | S Σ | 0..1 | string | 個案分類。[CRLF.class] ele-1: All FHIR elements must have a @value or children
category:Class_d | S | 1..1 | CodeableConcept | 診斷狀態分類 Binding: ConditionCategoryCodes (extensible): A category assigned to the condition. ele-1: All FHIR elements must have a @value or children
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 診斷狀態分類值集 (required): 診斷狀態分類；應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
system | S Σ | 1..1 | uri | Identity of the terminology system ele-1: All FHIR elements must have a @value or children Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-ClassDiagnosis
code | S Σ | 1..1 | code | 診斷狀態分類。[LF.class_d] ele-1: All FHIR elements must have a @value or children
text | S Σ | 0..1 | string | 診斷狀態分類。[LF.class_d] ele-1: All FHIR elements must have a @value or children
category:Class_T | S | 1..1 | CodeableConcept | 治療狀態分類 Binding: ConditionCategoryCodes (extensible): A category assigned to the condition. ele-1: All FHIR elements must have a @value or children
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 治療狀態分類值集 (required): 治療狀態分類；應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
system | S Σ | 1..1 | uri | Identity of the terminology system ele-1: All FHIR elements must have a @value or children Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Treatment
code | S Σ | 1..1 | code | 治療狀態分類。[LF.class_t] ele-1: All FHIR elements must have a @value or children
text | Σ | 0..1 | string | 治療狀態分類。[LF.class_t] ele-1: All FHIR elements must have a @value or children
Slices for bodySite | S Σ | 2..* | CodeableConcept | Anatomical location, if relevant Slice: Unordered, Open by pattern:$this Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality. ele-1: All FHIR elements must have a @value or children
bodySite:Site | S Σ | 1..1 | CodeableConcept | 原發部位 Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality. ele-1: All FHIR elements must have a @value or children
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 原發部位值集 (required): 原發部位值集；應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
system | S Σ | 1..1 | uri | Identity of the terminology system ele-1: All FHIR elements must have a @value or children Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/CodeSystem/CRLF-Site
code | S Σ | 1..1 | code | 原發部位。[LF.site] ele-1: All FHIR elements must have a @value or children
text | S Σ | 0..1 | string | 原發部位。[LF.site] ele-1: All FHIR elements must have a @value or children
bodySite:Lateral | S Σ | 1..1 | CodeableConcept | 側性 Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality. ele-1: All FHIR elements must have a @value or children
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 側性值集 (required): 側性值集；應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
system | S Σ | 1..1 | uri | Identity of the terminology system ele-1: All FHIR elements must have a @value or children Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Lateral
code | S Σ | 1..1 | code | 側性。[LF.lateral] ele-1: All FHIR elements must have a @value or children
text | S Σ | 0..1 | string | 側性。[LF.lateral] ele-1: All FHIR elements must have a @value or children
subject | S Σ | 1..1 | Reference(Patient CRLF-病患基本資料) | Who has the condition? ele-1: All FHIR elements must have a @value or children
reference | S Σ C | 1..1 | string | 患者 Resource Link ele-1: All FHIR elements must have a @value or children
onset[x] | S Σ | 1..1 | Age | 診斷年齡。[LF.age] ele-1: All FHIR elements must have a @value or children
value | S Σ | 0..1 | decimal | 診斷年齡。[LF.age] ele-1: All FHIR elements must have a @value or children
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented. ele-1: All FHIR elements must have a @value or children
unit | S Σ | 1..1 | string | Unit representation ele-1: All FHIR elements must have a @value or children Fixed Value: years
system | S Σ C | 1..1 | uri | System that defines coded unit form ele-1: All FHIR elements must have a @value or children Fixed Value: http://unitsofmeasure.org
code | S Σ | 1..1 | code | Coded form of the unit ele-1: All FHIR elements must have a @value or children Fixed Value: a
recordedDate | S Σ | 1..1 | dateTime | 首次就診日期。[LF.dcont] ele-1: All FHIR elements must have a @value or children
stage | S C | 1..* | BackboneElement | Stage/grade, usually assessed formally con-1: Stage SHALL have summary or assessment ele-1: All FHIR elements must have a @value or children
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
summary | S C | 0..1 | CodeableConcept | Simple summary (disease specific) Binding: ConditionStage (example): Codes describing condition stages (e.g. Cancer stages). ele-1: All FHIR elements must have a @value or children
coding | S Σ | 0..* | Coding | Code defined by a terminology system ele-1: All FHIR elements must have a @value or children
system | S Σ | 1..1 | uri | Identity of the terminology system ele-1: All FHIR elements must have a @value or children
code | S Σ | 1..1 | code | "臨床分級/分化"或"病理分級/分化"，[LF.grade_c/LF.grade_p]。擇一使用。 ele-1: All FHIR elements must have a @value or children
text | S Σ | 0..1 | string | "臨床分級/分化"或"病理分級/分化"。擇一使用 ele-1: All FHIR elements must have a @value or children
assessment | S C | 0..* | Reference(ClinicalImpression | DiagnosticReport | CRLF Observation-臨床分級/分化 | CRLF Observation-病理分級/分化) | Formal record of assessment ele-1: All FHIR elements must have a @value or children
reference | S Σ C | 1..1 | string | "臨床分級/分化"或"病理分級/分化"之Resource Link ele-1: All FHIR elements must have a @value or children
evidence | S C | 1..* | BackboneElement | Supporting evidence con-2: evidence SHALL have code or details ele-1: All FHIR elements must have a @value or children
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
code | S Σ C | 1..* | CodeableConcept | Manifestation/symptom Binding: ManifestationAndSymptomCodes (example): Codes that describe the manifestation or symptoms of a condition. ele-1: All FHIR elements must have a @value or children
coding | S Σ | 0..* | Coding | Code defined by a terminology system ele-1: All FHIR elements must have a @value or children
system | S Σ | 1..1 | uri | Identity of the terminology system ele-1: All FHIR elements must have a @value or children
code | S Σ | 1..1 | code | 癌症確診方式。[CRLF.confirm] ele-1: All FHIR elements must have a @value or children
text | S Σ | 0..1 | string | 癌症確診方式。[CRLF.confirm] ele-1: All FHIR elements must have a @value or children
note | S | 1..1 | Annotation | Additional information about the Condition ele-1: All FHIR elements must have a @value or children
text | S Σ | 1..1 | markdown | 癌症發生順序號碼。[LF.sequence] ele-1: All FHIR elements must have a @value or children
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Condition.clinicalStatus | required | ConditionClinicalStatusCodes `http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1` from the FHIR Standard
Condition.verificationStatus | required | ConditionVerificationStatus `http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1` from the FHIR Standard
Condition.category | extensible | ConditionCategoryCodes `http://hl7.org/fhir/ValueSet/condition-category` from the FHIR Standard
Condition.category:Class | extensible | ConditionCategoryCodes `http://hl7.org/fhir/ValueSet/condition-category` from the FHIR Standard
Condition.category:Class.coding | required | CRLFClassValueSet (a valid code from CRLF個案分類) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Class` from this IG
Condition.category:Class_d | extensible | ConditionCategoryCodes `http://hl7.org/fhir/ValueSet/condition-category` from the FHIR Standard
Condition.category:Class_d.coding | required | CRLFClassDiagnosisValueSet (a valid code from 診斷狀態分類代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-ClassDiagnosis` from this IG
Condition.category:Class_T | extensible | ConditionCategoryCodes `http://hl7.org/fhir/ValueSet/condition-category` from the FHIR Standard
Condition.category:Class_T.coding | required | CRLFTreatmentValueSet (a valid code from 治療狀態分類代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Treatment` from this IG
Condition.bodySite | example | SNOMEDCTBodyStructures `http://hl7.org/fhir/ValueSet/body-site` from the FHIR Standard
Condition.bodySite:Site | example | SNOMEDCTBodyStructures `http://hl7.org/fhir/ValueSet/body-site` from the FHIR Standard
Condition.bodySite:Site.coding | required | CRLFSiteValueSet (a valid code from 原發部位代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Site` from this IG
Condition.bodySite:Lateral | example | SNOMEDCTBodyStructures `http://hl7.org/fhir/ValueSet/body-site` from the FHIR Standard
Condition.bodySite:Lateral.coding | required | CRLFLateralValueSet (a valid code from 側性代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Lateral` from this IG
Condition.onset[x].comparator | required | QuantityComparator `http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1` from the FHIR Standard
Condition.stage.summary | example | ConditionStage `http://hl7.org/fhir/ValueSet/condition-stage` from the FHIR Standard
Condition.evidence.code | example | ManifestationAndSymptomCodes `http://hl7.org/fhir/ValueSet/manifestation-or-symptom` from the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
con-1 | error | Condition.stage | Stage SHALL have summary or assessment : summary.exists() or assessment.exists() |
con-2 | error | Condition.evidence | evidence SHALL have code or details : code.exists() or detail.exists() |
con-3 | best practice | Condition | Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item : clinicalStatus.exists() or verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'entered-in-error').exists() or category.select($this='problem-list-item').empty() |
con-4 | error | Condition | If condition is abated, then clinicalStatus must be either inactive, resolved, or remission : abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists() |
con-5 | error | Condition | Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error : verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty() |
dom-2 | error | Condition | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Condition | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Condition | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |

Differential View

This structure is derived from Condition

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Condition |  | 0..* | Condition | Detailed information about conditions, problems or diagnoses
Slices for extension |  |  |  | Content/Rules for all slices
assertedDate | S | 0..1 | (Complex) | 最初診斷日期 URL: http://hl7.org/fhir/StructureDefinition/condition-assertedDate
value[x] |  | 1..1 | dateTime | 最初診斷日期。[LF.didiag]
crlfHist | S | 0..* | CodeableConcept | Extension URL: https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/CRLF-Hist
crlfBehavior | S | 0..* | CodeableConcept | Extension URL: https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/CRLF-Behavior
Slices for category | S | 3..* | CodeableConcept | problem-list-item | encounter-diagnosis Slice: Unordered, Open by pattern:coding.system
category:Class | S | 1..1 | CodeableConcept | 個案分類
coding | S | 1..* | Coding | Code defined by a terminology system Binding: 個案分類值集 (required): 個案分類；應填入所綁定值集中的其中一個代碼。
system | S | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Class
code | S | 1..1 | code | 個案分類。[CRLF.class]
text | S | 0..1 | string | 個案分類。[CRLF.class]
category:Class_d | S | 1..1 | CodeableConcept | 診斷狀態分類
coding | S | 1..* | Coding | Code defined by a terminology system Binding: 診斷狀態分類值集 (required): 診斷狀態分類；應填入所綁定值集中的其中一個代碼。
system | S | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-ClassDiagnosis
code | S | 1..1 | code | 診斷狀態分類。[LF.class_d]
text | S | 0..1 | string | 診斷狀態分類。[LF.class_d]
category:Class_T | S | 1..1 | CodeableConcept | 治療狀態分類
coding | S | 1..* | Coding | Code defined by a terminology system Binding: 治療狀態分類值集 (required): 治療狀態分類；應填入所綁定值集中的其中一個代碼。
system | S | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Treatment
code | S | 1..1 | code | 治療狀態分類。[LF.class_t]
text |  | 0..1 | string | 治療狀態分類。[LF.class_t]
Slices for bodySite | S | 2..* | CodeableConcept | Anatomical location, if relevant Slice: Unordered, Open by pattern:$this
bodySite:Site | S | 1..1 | CodeableConcept | 原發部位
coding | S | 1..* | Coding | Code defined by a terminology system Binding: 原發部位值集 (required): 原發部位值集；應填入所綁定值集中的其中一個代碼。
system | S | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/CodeSystem/CRLF-Site
code | S | 1..1 | code | 原發部位。[LF.site]
text | S | 0..1 | string | 原發部位。[LF.site]
bodySite:Lateral | S | 1..1 | CodeableConcept | 側性
coding | S | 1..* | Coding | Code defined by a terminology system Binding: 側性值集 (required): 側性值集；應填入所綁定值集中的其中一個代碼。
system | S | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Lateral
code | S | 1..1 | code | 側性。[LF.lateral]
text | S | 0..1 | string | 側性。[LF.lateral]
subject | S | 1..1 | Reference(Patient CRLF-病患基本資料) | Who has the condition?
reference | S | 1..1 | string | 患者 Resource Link
onset[x] | S | 1..1 | Age | 診斷年齡。[LF.age]
value | S | 0..1 | decimal | 診斷年齡。[LF.age]
unit | S | 1..1 | string | Unit representation Fixed Value: years
system | S | 1..1 | uri | System that defines coded unit form Fixed Value: http://unitsofmeasure.org
code | S | 1..1 | code | Coded form of the unit Fixed Value: a
recordedDate | S | 1..1 | dateTime | 首次就診日期。[LF.dcont]
stage | S | 1..* | BackboneElement | Stage/grade, usually assessed formally
summary | S | 0..1 | CodeableConcept | Simple summary (disease specific)
coding | S | 0..* | Coding | Code defined by a terminology system
system | S | 1..1 | uri | Identity of the terminology system
code | S | 1..1 | code | "臨床分級/分化"或"病理分級/分化"，[LF.grade_c/LF.grade_p]。擇一使用。
text | S | 0..1 | string | "臨床分級/分化"或"病理分級/分化"。擇一使用
assessment | S | 0..* | Reference(ClinicalImpression | DiagnosticReport | CRLF Observation-臨床分級/分化 | CRLF Observation-病理分級/分化) | Formal record of assessment
reference | S | 1..1 | string | "臨床分級/分化"或"病理分級/分化"之Resource Link
evidence | S | 1..* | BackboneElement | Supporting evidence
code | S | 1..* | CodeableConcept | Manifestation/symptom
coding | S | 0..* | Coding | Code defined by a terminology system
system | S | 1..1 | uri | Identity of the terminology system
code | S | 1..1 | code | 癌症確診方式。[CRLF.confirm]
text | S | 0..1 | string | 癌症確診方式。[CRLF.confirm]
note | S | 1..1 | Annotation | Additional information about the Condition
text | S | 1..1 | markdown | 癌症發生順序號碼。[LF.sequence]
Documentation for this format

#### Terminology Bindings (Differential)

Path | Conformance | ValueSet | URI
Condition.category:Class.coding | required | CRLFClassValueSet (a valid code from CRLF個案分類) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Class` from this IG
Condition.category:Class_d.coding | required | CRLFClassDiagnosisValueSet (a valid code from 診斷狀態分類代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-ClassDiagnosis` from this IG
Condition.category:Class_T.coding | required | CRLFTreatmentValueSet (a valid code from 治療狀態分類代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Treatment` from this IG
Condition.bodySite:Site.coding | required | CRLFSiteValueSet (a valid code from 原發部位代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Site` from this IG
Condition.bodySite:Lateral.coding | required | CRLFLateralValueSet (a valid code from 側性代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Lateral` from this IG

Snapshot View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Condition | C | 0..* | Condition | Detailed information about conditions, problems or diagnoses con-3: Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item con-4: If condition is abated, then clinicalStatus must be either inactive, resolved, or remission con-5: Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
assertedDate | S | 0..1 | (Complex) | 最初診斷日期 URL: http://hl7.org/fhir/StructureDefinition/condition-assertedDate
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..0 |  |
url |  | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/condition-assertedDate"
value[x] |  | 1..1 | dateTime | 最初診斷日期。[LF.didiag]
crlfHist | S | 0..* | CodeableConcept | Extension URL: https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/CRLF-Hist
crlfBehavior | S | 0..* | CodeableConcept | Extension URL: https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/CRLF-Behavior
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | External Ids for this condition
clinicalStatus | ?!Σ C | 0..1 | CodeableConcept | active | recurrence | relapse | inactive | remission | resolved Binding: ConditionClinicalStatusCodes (required): The clinical status of the condition or diagnosis.
verificationStatus | ?!Σ C | 0..1 | CodeableConcept | unconfirmed | provisional | differential | confirmed | refuted | entered-in-error Binding: ConditionVerificationStatus (required): The verification status to support or decline the clinical status of the condition or diagnosis.
Slices for category | S | 3..* | CodeableConcept | problem-list-item | encounter-diagnosis Slice: Unordered, Open by pattern:coding.system Binding: ConditionCategoryCodes (extensible): A category assigned to the condition.
category:Class | S | 1..1 | CodeableConcept | 個案分類 Binding: ConditionCategoryCodes (extensible): A category assigned to the condition.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 個案分類值集 (required): 個案分類；應填入所綁定值集中的其中一個代碼。
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Class
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | 個案分類。[CRLF.class]
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | 個案分類。[CRLF.class]
category:Class_d | S | 1..1 | CodeableConcept | 診斷狀態分類 Binding: ConditionCategoryCodes (extensible): A category assigned to the condition.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 診斷狀態分類值集 (required): 診斷狀態分類；應填入所綁定值集中的其中一個代碼。
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-ClassDiagnosis
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | 診斷狀態分類。[LF.class_d]
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | 診斷狀態分類。[LF.class_d]
category:Class_T | S | 1..1 | CodeableConcept | 治療狀態分類 Binding: ConditionCategoryCodes (extensible): A category assigned to the condition.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 治療狀態分類值集 (required): 治療狀態分類；應填入所綁定值集中的其中一個代碼。
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Treatment
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | 治療狀態分類。[LF.class_t]
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | Σ | 0..1 | string | 治療狀態分類。[LF.class_t]
severity |  | 0..1 | CodeableConcept | Subjective severity of condition Binding: Condition/DiagnosisSeverity (preferred): A subjective assessment of the severity of the condition as evaluated by the clinician.
code | Σ | 0..1 | CodeableConcept | Identification of the condition, problem or diagnosis Binding: Condition/Problem/DiagnosisCodes (example): Identification of the condition or diagnosis.
Slices for bodySite | S Σ | 2..* | CodeableConcept | Anatomical location, if relevant Slice: Unordered, Open by pattern:$this Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
bodySite:Site | S Σ | 1..1 | CodeableConcept | 原發部位 Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 原發部位值集 (required): 原發部位值集；應填入所綁定值集中的其中一個代碼。
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/CodeSystem/CRLF-Site
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | 原發部位。[LF.site]
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | 原發部位。[LF.site]
bodySite:Lateral | S Σ | 1..1 | CodeableConcept | 側性 Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 1..* | Coding | Code defined by a terminology system Binding: 側性值集 (required): 側性值集；應填入所綁定值集中的其中一個代碼。
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Lateral
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | 側性。[LF.lateral]
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | 側性。[LF.lateral]
subject | S Σ | 1..1 | Reference(Patient CRLF-病患基本資料) | Who has the condition?
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | 患者 Resource Link
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
encounter | Σ | 0..1 | Reference(Encounter) | Encounter created as part of
onset[x] | S Σ | 1..1 | Age | 診斷年齡。[LF.age]
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 0..1 | decimal | 診斷年齡。[LF.age]
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 1..1 | string | Unit representation Fixed Value: years
system | S Σ C | 1..1 | uri | System that defines coded unit form Fixed Value: http://unitsofmeasure.org
code | S Σ | 1..1 | code | Coded form of the unit Fixed Value: a
abatement[x] | C | 0..1 |  | When in resolution/remission
abatementDateTime |  |  | dateTime |
abatementAge |  |  | Age |
abatementPeriod |  |  | Period |
abatementRange |  |  | Range |
abatementString |  |  | string |
recordedDate | S Σ | 1..1 | dateTime | 首次就診日期。[LF.dcont]
recorder | Σ | 0..1 | Reference(Practitioner | PractitionerRole | Patient | RelatedPerson) | Who recorded the condition
asserter | Σ | 0..1 | Reference(Practitioner | PractitionerRole | Patient | RelatedPerson) | Person who asserts this condition
stage | S C | 1..* | BackboneElement | Stage/grade, usually assessed formally con-1: Stage SHALL have summary or assessment
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
summary | S C | 0..1 | CodeableConcept | Simple summary (disease specific) Binding: ConditionStage (example): Codes describing condition stages (e.g. Cancer stages).
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 0..* | Coding | Code defined by a terminology system
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | "臨床分級/分化"或"病理分級/分化"，[LF.grade_c/LF.grade_p]。擇一使用。
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | "臨床分級/分化"或"病理分級/分化"。擇一使用
assessment | S C | 0..* | Reference(ClinicalImpression | DiagnosticReport | CRLF Observation-臨床分級/分化 | CRLF Observation-病理分級/分化) | Formal record of assessment
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | "臨床分級/分化"或"病理分級/分化"之Resource Link
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
type |  | 0..1 | CodeableConcept | Kind of staging Binding: ConditionStageType (example): Codes describing the kind of condition staging (e.g. clinical or pathological).
evidence | S C | 1..* | BackboneElement | Supporting evidence con-2: evidence SHALL have code or details
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S Σ C | 1..* | CodeableConcept | Manifestation/symptom Binding: ManifestationAndSymptomCodes (example): Codes that describe the manifestation or symptoms of a condition.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 0..* | Coding | Code defined by a terminology system
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | 癌症確診方式。[CRLF.confirm]
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | 癌症確診方式。[CRLF.confirm]
detail | Σ C | 0..* | Reference(Resource) | Supporting information found elsewhere
note | S | 1..1 | Annotation | Additional information about the Condition
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
author[x] | Σ | 0..1 |  | Individual responsible for the annotation
authorReference |  |  | Reference(Practitioner | Patient | RelatedPerson | Organization) |
authorString |  |  | string |
time | Σ | 0..1 | dateTime | When the annotation was made
text | S Σ | 1..1 | markdown | 癌症發生順序號碼。[LF.sequence]
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Condition.language | preferred | CommonLanguages `http://hl7.org/fhir/ValueSet/languages` from the FHIR Standard
Additional Bindings | Purpose
AllLanguages | Max Binding
Condition.clinicalStatus | required | ConditionClinicalStatusCodes `http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1` from the FHIR Standard
Condition.verificationStatus | required | ConditionVerificationStatus `http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1` from the FHIR Standard
Condition.category | extensible | ConditionCategoryCodes `http://hl7.org/fhir/ValueSet/condition-category` from the FHIR Standard
Condition.category:Class | extensible | ConditionCategoryCodes `http://hl7.org/fhir/ValueSet/condition-category` from the FHIR Standard
Condition.category:Class.coding | required | CRLFClassValueSet (a valid code from CRLF個案分類) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Class` from this IG
Condition.category:Class_d | extensible | ConditionCategoryCodes `http://hl7.org/fhir/ValueSet/condition-category` from the FHIR Standard
Condition.category:Class_d.coding | required | CRLFClassDiagnosisValueSet (a valid code from 診斷狀態分類代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-ClassDiagnosis` from this IG
Condition.category:Class_T | extensible | ConditionCategoryCodes `http://hl7.org/fhir/ValueSet/condition-category` from the FHIR Standard
Condition.category:Class_T.coding | required | CRLFTreatmentValueSet (a valid code from 治療狀態分類代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Treatment` from this IG
Condition.severity | preferred | Condition/DiagnosisSeverity `http://hl7.org/fhir/ValueSet/condition-severity` from the FHIR Standard
Condition.code | example | Condition/Problem/DiagnosisCodes `http://hl7.org/fhir/ValueSet/condition-code` from the FHIR Standard
Condition.bodySite | example | SNOMEDCTBodyStructures `http://hl7.org/fhir/ValueSet/body-site` from the FHIR Standard
Condition.bodySite:Site | example | SNOMEDCTBodyStructures `http://hl7.org/fhir/ValueSet/body-site` from the FHIR Standard
Condition.bodySite:Site.coding | required | CRLFSiteValueSet (a valid code from 原發部位代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Site` from this IG
Condition.bodySite:Lateral | example | SNOMEDCTBodyStructures `http://hl7.org/fhir/ValueSet/body-site` from the FHIR Standard
Condition.bodySite:Lateral.coding | required | CRLFLateralValueSet (a valid code from 側性代碼系統) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/CRLF-Lateral` from this IG
Condition.subject.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types` from the FHIR Standard
Condition.onset[x].comparator | required | QuantityComparator `http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1` from the FHIR Standard
Condition.stage.summary | example | ConditionStage `http://hl7.org/fhir/ValueSet/condition-stage` from the FHIR Standard
Condition.stage.assessment.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types` from the FHIR Standard
Condition.stage.type | example | ConditionStageType `http://hl7.org/fhir/ValueSet/condition-stage-type` from the FHIR Standard
Condition.evidence.code | example | ManifestationAndSymptomCodes `http://hl7.org/fhir/ValueSet/manifestation-or-symptom` from the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
con-1 | error | Condition.stage | Stage SHALL have summary or assessment : summary.exists() or assessment.exists() |
con-2 | error | Condition.evidence | evidence SHALL have code or details : code.exists() or detail.exists() |
con-3 | best practice | Condition | Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item : clinicalStatus.exists() or verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'entered-in-error').exists() or category.select($this='problem-list-item').empty() |
con-4 | error | Condition | If condition is abated, then clinicalStatus must be either inactive, resolved, or remission : abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists() |
con-5 | error | Condition | Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error : verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty() |
dom-2 | error | Condition | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Condition | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Condition | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |

This structure is derived from Condition

Summary

Mandatory: 30 elements(5 nested mandatory elements)
Must-Support: 53 elements
Fixed: 3 elements

Structures

This structure refers to these other structures:

- Patient CRLF-病患基本資料 (https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/PatientCRLF)
- CRLF Observation-臨床分級/分化 (https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/Observation-GradeClinical)
- CRLF Observation-病理分級/分化 (https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/Observation-GradePathology)

Extensions

This structure refers to these extensions:

- http://hl7.org/fhir/StructureDefinition/condition-assertedDate
- https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/CRLF-Hist
- https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/CRLF-Behavior

Slices

This structure defines the following Slices:

- The element 1 is sliced based on the value of Condition.category
- The element 1 is sliced based on the value of Condition.bodySite

Other representations of profile: CSV, Excel, Schematron