Onconova Implementation Guide
0.2.0 - ci-build

Onconova Implementation Guide - Local Development build (v0.2.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: Primary Cancer Condition Profile

Official URL: http://onconova.github.io/fhir/StructureDefinition/onconova-primary-cancer-condition Version: 0.2.0
Active as of 2025-10-17 Computable Name: OnconovaPrimaryCancerCondition

A profile that records the primary cancer condition, the original or first neoplasm in the body (Definition from: NCI Dictionary of Cancer Terms). Cancers that are not clearly secondary (i.e., of uncertain origin or behavior) should be documented as primary.

It constrains the mCODE PrimaryCancerCondition profile to constrain the terminologies of the cancer topography and morphology extensions to use exclusively ICD-O-3 codes.

This profile can be used to represent the Onconova neoplastic entities of relationship primary, local_recurrence, and regional_recurrence. Local and regional recurrences are indicated using extensions to denote that the condition is a recurrence of a previous condition, and to specify the type of recurrence (local or regional). For example, a local recurrence would be represented as a PrimaryCancerCondition with:

{
    clinicalStatus: {
        coding: [
            {
                system: "http://snomed.info/sct",
                code: "recurrence",
                display: "Recurrence"
            }
        ],
    },
    _clinicalStatus {
        extension: [
            {
                url: "http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-type",
                valueCodeableConcept: {
                    coding: [
                        {
                            system: "http://snomed.info/sct",
                            code: "255470001",
                            display: "Local (qualifier value)"
                        }
                    ]
                }
            }
        ]
    },
}

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Condition C 0..* PrimaryCancerCondition(4.0.0) Detailed information about conditions, problems or diagnoses
Constraints: con-3, con-4, con-5, o-con-1, o-con-2, o-con-req-1, o-con-req-2, o-con-req-3, o-con-req-4
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for extension S 1..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
.... extension:assertedDate S 0..1 dateTime (USCDI) Date the condition was first asserted
URL: http://hl7.org/fhir/StructureDefinition/condition-assertedDate
Constraints: ext-1
.... extension:histologyMorphologyBehavior S 1..1 (Complex) Histology-Morphology-Behavior Extension
URL: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-histology-morphology-behavior
Constraints: ext-1
..... extension 0..0
..... url 1..1 uri "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-histology-morphology-behavior"
..... value[x] 1..1 CodeableConcept Value of extension
Binding: ICDO3MorphologyBehavior (0.2.0) (required)
.... extension:recurrenceOf S 0..1 Reference(Primary Cancer Condition Profile(4.0.0)) Recurrence Of
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-of
Constraints: ext-1
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
Constraints: ext-1
.... Slices for extension Content/Rules for all slices
..... extension:recurrenceType 0..1 CodeableConcept Recurrence Type
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-type
Binding: RecurrenceTypeVS (0.2.0) (required)
Constraints: ext-1
... verificationStatus ?!SΣC 0..1 CodeableConcept Not used in this profile
Binding: ConditionVerificationStatus (required)
... Slices for category S 1..* CodeableConcept (USCDI) category codes
Slice: Unordered, Open by pattern:$this
Binding: ConditionCategoryCodes (extensible): A category assigned to the condition.
.... category:us-core S 1..* CodeableConcept (USCDI) problem-list-item | health-concern
Binding: USCoreProblemOrHealthConcern (6.1.0) (required): Note that other codes are permitted, see Required Bindings When Slicing by Value Sets
.... category:screening-assessment S 0..* CodeableConcept (USCDI) USCDI Health Status/Assessments Data Class
Binding: USCoreScreeningAssessmentConditionCategory (6.1.0) (required): Note that other codes are permitted, see Required Bindings When Slicing by Value Sets
... severity 0..1 CodeableConcept Not used in this profile
Binding: Condition/DiagnosisSeverity (preferred): A subjective assessment of the severity of the condition as evaluated by the clinician.
... code SΣ 1..1 CodeableConcept (USCDI) Identification of the condition, problem or diagnosis
Binding: PrimaryCancerDisorderVS (4.0.0) (extensible)
Required Pattern: At least the following
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... system 1..1 uri Identity of the terminology system
Fixed Value: http://snomed.info/sct
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 363346000
..... display 1..1 string Representation defined by the system
Fixed Value: Malignant neoplastic disease
..... userSelected 0..1 boolean If this coding was chosen directly by the user
.... text 0..1 string Plain text representation of the concept
... bodySite SΣ 1..* CodeableConcept Anatomical location, if relevant
Binding: ICDO3Topography (0.2.0) (required)
.... Slices for extension Content/Rules for all slices
..... extension:locationQualifier S 0..* CodeableConcept General location qualifier (excluding laterality) for this bodySite
URL: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-body-location-qualifier
Binding: Body Location Qualifier Value Set (required)
Constraints: ext-1
..... extension:lateralityQualifier S 0..1 CodeableConcept Laterality qualifier for this bodySite
URL: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-laterality-qualifier
Binding: Laterality Qualifier Value Set (required)
Constraints: ext-1
... subject SΣ 1..1 Reference(Cancer Patient Profile(0.2.0)) (USCDI) Who has the condition?
... encounter Σ 0..1 Reference(Encounter) Not used in this profile
... onset[x] SΣ 0..1 (USCDI) Estimated or actual date, date-time, or age
.... onsetDateTime dateTime S
.... onsetAge Age
.... onsetPeriod Period
.... onsetRange Range
.... onsetString string
... abatement[x] SC 0..1 (USCDI) When in resolution/remission
.... abatementDateTime dateTime S
.... abatementAge Age
.... abatementPeriod Period
.... abatementRange Range
.... abatementString string
... recordedDate SΣ 0..1 dateTime Not used in this profile
... recorder Σ 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson) Not used in this profile
... asserter Σ 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson) Not used in this profile
... stage SC 0..* BackboneElement Not used in this profile
Constraints: con-1
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
.... assessment SC 0..* Reference(Cancer Stage Profile(4.0.0)) Formal record of assessment
... evidence C 0..* BackboneElement Not used in this profile
Constraints: con-2
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Condition.extension:histologyMorphologyBehavior.​value[x] Base required ICD-O-3 Morphology Behavior 📍0.2.0 This IG
Condition.clinicalStatus Base required Condition Clinical Status Codes 📍4.0.1 FHIR Std.
Condition.verificationStatus Base required ConditionVerificationStatus 📍4.0.1 FHIR Std.
Condition.category Base extensible Condition Category Codes 📍4.0.1 FHIR Std.
Condition.category:us-core Base required US Core Problem or Health Concern 📍6.1.0 US Core v6.1
Condition.category:screening-assessment Base required US Core Screening Assessment Condition Category 📍6.1.0 US Core v6.1
Condition.severity Base preferred Condition/Diagnosis Severity 📍4.0.1 FHIR Std.
Condition.code Base extensible Primary Cancer Disorder Value Set 📍4.0.0 minimal Common Oncology Data Elements v4.0
Condition.bodySite Base required ICD-O-3 Topography 📍0.2.0 This IG

Constraints

Id Grade Path(s) Description Expression
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 Condition.implicitRules, Condition.extension, Condition.extension:assertedDate, Condition.extension:histologyMorphologyBehavior, Condition.extension:histologyMorphologyBehavior.value[x], Condition.extension:recurrenceOf, Condition.modifierExtension, Condition.clinicalStatus, Condition.clinicalStatus.extension:recurrenceType, Condition.verificationStatus, Condition.category, Condition.category:us-core, Condition.category:screening-assessment, Condition.severity, Condition.code, Condition.bodySite, Condition.bodySite.extension:locationQualifier, Condition.bodySite.extension:lateralityQualifier, Condition.subject, Condition.encounter, Condition.onset[x], Condition.abatement[x], Condition.recordedDate, Condition.recorder, Condition.asserter, Condition.stage, Condition.stage.modifierExtension, Condition.stage.assessment, Condition.evidence, Condition.evidence.modifierExtension All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error Condition.extension, Condition.extension:assertedDate, Condition.extension:histologyMorphologyBehavior, Condition.extension:recurrenceOf, Condition.modifierExtension, Condition.clinicalStatus.extension:recurrenceType, Condition.bodySite.extension:locationQualifier, Condition.bodySite.extension:lateralityQualifier, Condition.stage.modifierExtension, Condition.evidence.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()
o-con-1 error Condition If clinicalStatus is 'recurrence', the recurrenceOf extension must be provided. clinicalStatus.exists() and clinicalStatus.coding.code = 'recurrence' implies extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-of').exists()
o-con-2 error Condition If clinicalStatus is 'recurrence', the type of recurrence must be provided. clinicalStatus.exists() and clinicalStatus.coding.code = 'recurrence' implies clinicalStatus.extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-type').exists()
o-con-req-1 error Condition The subject element is required and must be provided. subject.exists() and subject.resolve().is(Patient)
o-con-req-2 error Condition The assertedDate extension is required and must be provided. extension('http://hl7.org/fhir/StructureDefinition/condition-assertedDate').exists()
o-con-req-3 error Condition The bodySite element is required and must be provided. bodySite.exists() and bodySite.coding.exists()
o-con-req-4 error Condition The histologyMorphologyBehavior extension is required and must be provided. extension('http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-histology-morphology-behavior').exists()

This structure is derived from PrimaryCancerCondition

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Condition C 0..* PrimaryCancerCondition(4.0.0) Detailed information about conditions, problems or diagnoses
... extension 1..* Extension Extension
... Slices for extension Content/Rules for all slices
.... extension:histologyMorphologyBehavior 1..1 HistologyMorphologyBehavior(4.0.0) Histology-Morphology-Behavior Extension
..... value[x] 1..1 CodeableConcept Value of extension
Binding: ICDO3MorphologyBehavior (0.2.0) (required)
.... extension:recurrenceOf 0..1 Reference(Primary Cancer Condition Profile(4.0.0)) Recurrence Of
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-of
... clinicalStatus
.... Slices for extension Content/Rules for all slices
..... extension:recurrenceType 0..1 CodeableConcept Recurrence Type
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-type
Binding: RecurrenceTypeVS (0.2.0) (required)
... severity 0..1 CodeableConcept Not used in this profile
... code 1..1 CodeableConcept (USCDI) Identification of the condition, problem or diagnosis
Required Pattern: At least the following
.... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
..... system 1..1 uri Identity of the terminology system
Fixed Value: http://snomed.info/sct
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 363346000
..... display 1..1 string Representation defined by the system
Fixed Value: Malignant neoplastic disease
... bodySite 1..* CodeableConcept Anatomical location, if relevant
Binding: ICDO3Topography (0.2.0) (required)
... subject 1..1 Reference(Cancer Patient Profile(0.2.0)) (USCDI) Who has the condition?
... encounter 0..1 Reference(Encounter) Not used in this profile
... recordedDate 0..1 dateTime Not used in this profile
... recorder 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson) Not used in this profile
... asserter 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson) Not used in this profile
... stage 0..* BackboneElement Not used in this profile
... evidence 0..* BackboneElement Not used in this profile

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Condition.extension:histologyMorphologyBehavior.​value[x] Base required ICD-O-3 Morphology Behavior 📍0.2.0 This IG
Condition.bodySite Base required ICD-O-3 Topography 📍0.2.0 This IG

Constraints

Id Grade Path(s) Description Expression
o-con-1 error Condition If clinicalStatus is 'recurrence', the recurrenceOf extension must be provided. clinicalStatus.exists() and clinicalStatus.coding.code = 'recurrence' implies extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-of').exists()
o-con-2 error Condition If clinicalStatus is 'recurrence', the type of recurrence must be provided. clinicalStatus.exists() and clinicalStatus.coding.code = 'recurrence' implies clinicalStatus.extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-type').exists()
o-con-req-1 error Condition The subject element is required and must be provided. subject.exists() and subject.resolve().is(Patient)
o-con-req-2 error Condition The assertedDate extension is required and must be provided. extension('http://hl7.org/fhir/StructureDefinition/condition-assertedDate').exists()
o-con-req-3 error Condition The bodySite element is required and must be provided. bodySite.exists() and bodySite.coding.exists()
o-con-req-4 error Condition The histologyMorphologyBehavior extension is required and must be provided. extension('http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-histology-morphology-behavior').exists()
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Condition C 0..* PrimaryCancerCondition(4.0.0) Detailed information about conditions, problems or diagnoses
Constraints: con-3, con-4, con-5, o-con-1, o-con-2, o-con-req-1, o-con-req-2, o-con-req-3, o-con-req-4
... 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
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... Slices for extension S 1..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
.... extension:assertedDate S 0..1 dateTime (USCDI) Date the condition was first asserted
URL: http://hl7.org/fhir/StructureDefinition/condition-assertedDate
Constraints: ext-1
.... extension:histologyMorphologyBehavior S 1..1 (Complex) Histology-Morphology-Behavior Extension
URL: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-histology-morphology-behavior
Constraints: ext-1
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..0
..... url 1..1 uri "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-histology-morphology-behavior"
..... value[x] 1..1 CodeableConcept Value of extension
Binding: ICDO3MorphologyBehavior (0.2.0) (required)
.... extension:recurrenceOf S 0..1 Reference(Primary Cancer Condition Profile(4.0.0)) Recurrence Of
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-of
Constraints: ext-1
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
Constraints: ext-1
... identifier Σ 0..* Identifier External Ids for this condition
... clinicalStatus ?!SΣC 0..1 CodeableConcept (USCDI) active | recurrence | relapse | inactive | remission | resolved
Binding: ConditionClinicalStatusCodes (required)
.... id 0..1 string Unique id for inter-element referencing
.... Slices for extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:recurrenceType 0..1 CodeableConcept Recurrence Type
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-type
Binding: RecurrenceTypeVS (0.2.0) (required)
Constraints: ext-1
.... coding Σ 0..* Coding Code defined by a terminology system
.... text Σ 0..1 string Plain text representation of the concept
... verificationStatus ?!SΣC 0..1 CodeableConcept Not used in this profile
Binding: ConditionVerificationStatus (required)
... Slices for category S 1..* CodeableConcept (USCDI) category codes
Slice: Unordered, Open by pattern:$this
Binding: ConditionCategoryCodes (extensible): A category assigned to the condition.
.... category:us-core S 1..* CodeableConcept (USCDI) problem-list-item | health-concern
Binding: USCoreProblemOrHealthConcern (6.1.0) (required): Note that other codes are permitted, see Required Bindings When Slicing by Value Sets
.... category:screening-assessment S 0..* CodeableConcept (USCDI) USCDI Health Status/Assessments Data Class
Binding: USCoreScreeningAssessmentConditionCategory (6.1.0) (required): Note that other codes are permitted, see Required Bindings When Slicing by Value Sets
... severity 0..1 CodeableConcept Not used in this profile
Binding: Condition/DiagnosisSeverity (preferred): A subjective assessment of the severity of the condition as evaluated by the clinician.
... code SΣ 1..1 CodeableConcept (USCDI) Identification of the condition, problem or diagnosis
Binding: PrimaryCancerDisorderVS (4.0.0) (extensible)
Required Pattern: At least the following
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... system 1..1 uri Identity of the terminology system
Fixed Value: http://snomed.info/sct
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 363346000
..... display 1..1 string Representation defined by the system
Fixed Value: Malignant neoplastic disease
..... userSelected 0..1 boolean If this coding was chosen directly by the user
.... text 0..1 string Plain text representation of the concept
... bodySite SΣ 1..* CodeableConcept Anatomical location, if relevant
Binding: ICDO3Topography (0.2.0) (required)
.... id 0..1 string Unique id for inter-element referencing
.... Slices for extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:locationQualifier S 0..* CodeableConcept General location qualifier (excluding laterality) for this bodySite
URL: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-body-location-qualifier
Binding: Body Location Qualifier Value Set (required)
Constraints: ext-1
..... extension:lateralityQualifier S 0..1 CodeableConcept Laterality qualifier for this bodySite
URL: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-laterality-qualifier
Binding: Laterality Qualifier Value Set (required)
Constraints: ext-1
.... coding Σ 0..* Coding Code defined by a terminology system
.... text Σ 0..1 string Plain text representation of the concept
... subject SΣ 1..1 Reference(Cancer Patient Profile(0.2.0)) (USCDI) Who has the condition?
... encounter Σ 0..1 Reference(Encounter) Not used in this profile
... onset[x] SΣ 0..1 (USCDI) Estimated or actual date, date-time, or age
.... onsetDateTime dateTime S
.... onsetAge Age
.... onsetPeriod Period
.... onsetRange Range
.... onsetString string
... abatement[x] SC 0..1 (USCDI) When in resolution/remission
.... abatementDateTime dateTime S
.... abatementAge Age
.... abatementPeriod Period
.... abatementRange Range
.... abatementString string
... recordedDate SΣ 0..1 dateTime Not used in this profile
... recorder Σ 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson) Not used in this profile
... asserter Σ 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson) Not used in this profile
... stage SC 0..* BackboneElement Not used in this profile
Constraints: con-1
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
.... summary C 0..1 CodeableConcept Stage at time of last staging.
Binding: ConditionStage (example): Codes describing condition stages (e.g. Cancer stages).
.... assessment SC 0..* Reference(Cancer Stage Profile(4.0.0)) Formal record of assessment
.... type 0..1 CodeableConcept The type of stage Staging system or method used.
Binding: CancerStagingMethodVS (4.0.0) (extensible)
... evidence C 0..* BackboneElement Not used in this profile
Constraints: con-2
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
.... code ΣC 0..* CodeableConcept Manifestation/symptom
Binding: CancerDiseaseStatusEvidenceTypeVS (4.0.0) (required)
.... detail ΣC 0..* Reference(Resource) Supporting information found elsewhere
... note 0..* Annotation Additional information about the Condition

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Condition.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Condition.extension:histologyMorphologyBehavior.​value[x] Base required ICD-O-3 Morphology Behavior 📍0.2.0 This IG
Condition.clinicalStatus Base required Condition Clinical Status Codes 📍4.0.1 FHIR Std.
Condition.verificationStatus Base required ConditionVerificationStatus 📍4.0.1 FHIR Std.
Condition.category Base extensible Condition Category Codes 📍4.0.1 FHIR Std.
Condition.category:us-core Base required US Core Problem or Health Concern 📍6.1.0 US Core v6.1
Condition.category:screening-assessment Base required US Core Screening Assessment Condition Category 📍6.1.0 US Core v6.1
Condition.severity Base preferred Condition/Diagnosis Severity 📍4.0.1 FHIR Std.
Condition.code Base extensible Primary Cancer Disorder Value Set 📍4.0.0 minimal Common Oncology Data Elements v4.0
Condition.bodySite Base required ICD-O-3 Topography 📍0.2.0 This IG
Condition.stage.summary Base example Condition Stage 📍4.0.1 FHIR Std.
Condition.stage.type Base extensible Cancer Staging Method Value Set 📍4.0.0 minimal Common Oncology Data Elements v4.0
Condition.evidence.code Base required Cancer Disease Status Evidence Type Value Set 📍4.0.0 minimal Common Oncology Data Elements v4.0

Constraints

Id Grade Path(s) Description Expression
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 Condition.meta, Condition.implicitRules, Condition.language, Condition.text, Condition.extension, Condition.extension:assertedDate, Condition.extension:histologyMorphologyBehavior, Condition.extension:histologyMorphologyBehavior.value[x], Condition.extension:recurrenceOf, Condition.modifierExtension, Condition.identifier, Condition.clinicalStatus, Condition.clinicalStatus.extension, Condition.clinicalStatus.extension:recurrenceType, Condition.clinicalStatus.coding, Condition.clinicalStatus.text, Condition.verificationStatus, Condition.category, Condition.category:us-core, Condition.category:screening-assessment, Condition.severity, Condition.code, Condition.bodySite, Condition.bodySite.extension, Condition.bodySite.extension:locationQualifier, Condition.bodySite.extension:lateralityQualifier, Condition.bodySite.coding, Condition.bodySite.text, Condition.subject, Condition.encounter, Condition.onset[x], Condition.abatement[x], Condition.recordedDate, Condition.recorder, Condition.asserter, Condition.stage, Condition.stage.extension, Condition.stage.modifierExtension, Condition.stage.summary, Condition.stage.assessment, Condition.stage.type, Condition.evidence, Condition.evidence.extension, Condition.evidence.modifierExtension, Condition.evidence.code, Condition.evidence.detail, Condition.note All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error Condition.extension, Condition.extension:assertedDate, Condition.extension:histologyMorphologyBehavior, Condition.extension:recurrenceOf, Condition.modifierExtension, Condition.clinicalStatus.extension, Condition.clinicalStatus.extension:recurrenceType, Condition.bodySite.extension, Condition.bodySite.extension:locationQualifier, Condition.bodySite.extension:lateralityQualifier, Condition.stage.extension, Condition.stage.modifierExtension, Condition.evidence.extension, Condition.evidence.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()
o-con-1 error Condition If clinicalStatus is 'recurrence', the recurrenceOf extension must be provided. clinicalStatus.exists() and clinicalStatus.coding.code = 'recurrence' implies extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-of').exists()
o-con-2 error Condition If clinicalStatus is 'recurrence', the type of recurrence must be provided. clinicalStatus.exists() and clinicalStatus.coding.code = 'recurrence' implies clinicalStatus.extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-type').exists()
o-con-req-1 error Condition The subject element is required and must be provided. subject.exists() and subject.resolve().is(Patient)
o-con-req-2 error Condition The assertedDate extension is required and must be provided. extension('http://hl7.org/fhir/StructureDefinition/condition-assertedDate').exists()
o-con-req-3 error Condition The bodySite element is required and must be provided. bodySite.exists() and bodySite.coding.exists()
o-con-req-4 error Condition The histologyMorphologyBehavior extension is required and must be provided. extension('http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-histology-morphology-behavior').exists()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Condition C 0..* PrimaryCancerCondition(4.0.0) Detailed information about conditions, problems or diagnoses
Constraints: con-3, con-4, con-5, o-con-1, o-con-2, o-con-req-1, o-con-req-2, o-con-req-3, o-con-req-4
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for extension S 1..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
.... extension:assertedDate S 0..1 dateTime (USCDI) Date the condition was first asserted
URL: http://hl7.org/fhir/StructureDefinition/condition-assertedDate
Constraints: ext-1
.... extension:histologyMorphologyBehavior S 1..1 (Complex) Histology-Morphology-Behavior Extension
URL: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-histology-morphology-behavior
Constraints: ext-1
..... extension 0..0
..... url 1..1 uri "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-histology-morphology-behavior"
..... value[x] 1..1 CodeableConcept Value of extension
Binding: ICDO3MorphologyBehavior (0.2.0) (required)
.... extension:recurrenceOf S 0..1 Reference(Primary Cancer Condition Profile(4.0.0)) Recurrence Of
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-of
Constraints: ext-1
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
Constraints: ext-1
.... Slices for extension Content/Rules for all slices
..... extension:recurrenceType 0..1 CodeableConcept Recurrence Type
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-type
Binding: RecurrenceTypeVS (0.2.0) (required)
Constraints: ext-1
... verificationStatus ?!SΣC 0..1 CodeableConcept Not used in this profile
Binding: ConditionVerificationStatus (required)
... Slices for category S 1..* CodeableConcept (USCDI) category codes
Slice: Unordered, Open by pattern:$this
Binding: ConditionCategoryCodes (extensible): A category assigned to the condition.
.... category:us-core S 1..* CodeableConcept (USCDI) problem-list-item | health-concern
Binding: USCoreProblemOrHealthConcern (6.1.0) (required): Note that other codes are permitted, see Required Bindings When Slicing by Value Sets
.... category:screening-assessment S 0..* CodeableConcept (USCDI) USCDI Health Status/Assessments Data Class
Binding: USCoreScreeningAssessmentConditionCategory (6.1.0) (required): Note that other codes are permitted, see Required Bindings When Slicing by Value Sets
... severity 0..1 CodeableConcept Not used in this profile
Binding: Condition/DiagnosisSeverity (preferred): A subjective assessment of the severity of the condition as evaluated by the clinician.
... code SΣ 1..1 CodeableConcept (USCDI) Identification of the condition, problem or diagnosis
Binding: PrimaryCancerDisorderVS (4.0.0) (extensible)
Required Pattern: At least the following
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... system 1..1 uri Identity of the terminology system
Fixed Value: http://snomed.info/sct
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 363346000
..... display 1..1 string Representation defined by the system
Fixed Value: Malignant neoplastic disease
..... userSelected 0..1 boolean If this coding was chosen directly by the user
.... text 0..1 string Plain text representation of the concept
... bodySite SΣ 1..* CodeableConcept Anatomical location, if relevant
Binding: ICDO3Topography (0.2.0) (required)
.... Slices for extension Content/Rules for all slices
..... extension:locationQualifier S 0..* CodeableConcept General location qualifier (excluding laterality) for this bodySite
URL: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-body-location-qualifier
Binding: Body Location Qualifier Value Set (required)
Constraints: ext-1
..... extension:lateralityQualifier S 0..1 CodeableConcept Laterality qualifier for this bodySite
URL: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-laterality-qualifier
Binding: Laterality Qualifier Value Set (required)
Constraints: ext-1
... subject SΣ 1..1 Reference(Cancer Patient Profile(0.2.0)) (USCDI) Who has the condition?
... encounter Σ 0..1 Reference(Encounter) Not used in this profile
... onset[x] SΣ 0..1 (USCDI) Estimated or actual date, date-time, or age
.... onsetDateTime dateTime S
.... onsetAge Age
.... onsetPeriod Period
.... onsetRange Range
.... onsetString string
... abatement[x] SC 0..1 (USCDI) When in resolution/remission
.... abatementDateTime dateTime S
.... abatementAge Age
.... abatementPeriod Period
.... abatementRange Range
.... abatementString string
... recordedDate SΣ 0..1 dateTime Not used in this profile
... recorder Σ 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson) Not used in this profile
... asserter Σ 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson) Not used in this profile
... stage SC 0..* BackboneElement Not used in this profile
Constraints: con-1
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
.... assessment SC 0..* Reference(Cancer Stage Profile(4.0.0)) Formal record of assessment
... evidence C 0..* BackboneElement Not used in this profile
Constraints: con-2
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Condition.extension:histologyMorphologyBehavior.​value[x] Base required ICD-O-3 Morphology Behavior 📍0.2.0 This IG
Condition.clinicalStatus Base required Condition Clinical Status Codes 📍4.0.1 FHIR Std.
Condition.verificationStatus Base required ConditionVerificationStatus 📍4.0.1 FHIR Std.
Condition.category Base extensible Condition Category Codes 📍4.0.1 FHIR Std.
Condition.category:us-core Base required US Core Problem or Health Concern 📍6.1.0 US Core v6.1
Condition.category:screening-assessment Base required US Core Screening Assessment Condition Category 📍6.1.0 US Core v6.1
Condition.severity Base preferred Condition/Diagnosis Severity 📍4.0.1 FHIR Std.
Condition.code Base extensible Primary Cancer Disorder Value Set 📍4.0.0 minimal Common Oncology Data Elements v4.0
Condition.bodySite Base required ICD-O-3 Topography 📍0.2.0 This IG

Constraints

Id Grade Path(s) Description Expression
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 Condition.implicitRules, Condition.extension, Condition.extension:assertedDate, Condition.extension:histologyMorphologyBehavior, Condition.extension:histologyMorphologyBehavior.value[x], Condition.extension:recurrenceOf, Condition.modifierExtension, Condition.clinicalStatus, Condition.clinicalStatus.extension:recurrenceType, Condition.verificationStatus, Condition.category, Condition.category:us-core, Condition.category:screening-assessment, Condition.severity, Condition.code, Condition.bodySite, Condition.bodySite.extension:locationQualifier, Condition.bodySite.extension:lateralityQualifier, Condition.subject, Condition.encounter, Condition.onset[x], Condition.abatement[x], Condition.recordedDate, Condition.recorder, Condition.asserter, Condition.stage, Condition.stage.modifierExtension, Condition.stage.assessment, Condition.evidence, Condition.evidence.modifierExtension All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error Condition.extension, Condition.extension:assertedDate, Condition.extension:histologyMorphologyBehavior, Condition.extension:recurrenceOf, Condition.modifierExtension, Condition.clinicalStatus.extension:recurrenceType, Condition.bodySite.extension:locationQualifier, Condition.bodySite.extension:lateralityQualifier, Condition.stage.modifierExtension, Condition.evidence.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()
o-con-1 error Condition If clinicalStatus is 'recurrence', the recurrenceOf extension must be provided. clinicalStatus.exists() and clinicalStatus.coding.code = 'recurrence' implies extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-of').exists()
o-con-2 error Condition If clinicalStatus is 'recurrence', the type of recurrence must be provided. clinicalStatus.exists() and clinicalStatus.coding.code = 'recurrence' implies clinicalStatus.extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-type').exists()
o-con-req-1 error Condition The subject element is required and must be provided. subject.exists() and subject.resolve().is(Patient)
o-con-req-2 error Condition The assertedDate extension is required and must be provided. extension('http://hl7.org/fhir/StructureDefinition/condition-assertedDate').exists()
o-con-req-3 error Condition The bodySite element is required and must be provided. bodySite.exists() and bodySite.coding.exists()
o-con-req-4 error Condition The histologyMorphologyBehavior extension is required and must be provided. extension('http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-histology-morphology-behavior').exists()

Differential View

This structure is derived from PrimaryCancerCondition

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Condition C 0..* PrimaryCancerCondition(4.0.0) Detailed information about conditions, problems or diagnoses
... extension 1..* Extension Extension
... Slices for extension Content/Rules for all slices
.... extension:histologyMorphologyBehavior 1..1 HistologyMorphologyBehavior(4.0.0) Histology-Morphology-Behavior Extension
..... value[x] 1..1 CodeableConcept Value of extension
Binding: ICDO3MorphologyBehavior (0.2.0) (required)
.... extension:recurrenceOf 0..1 Reference(Primary Cancer Condition Profile(4.0.0)) Recurrence Of
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-of
... clinicalStatus
.... Slices for extension Content/Rules for all slices
..... extension:recurrenceType 0..1 CodeableConcept Recurrence Type
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-type
Binding: RecurrenceTypeVS (0.2.0) (required)
... severity 0..1 CodeableConcept Not used in this profile
... code 1..1 CodeableConcept (USCDI) Identification of the condition, problem or diagnosis
Required Pattern: At least the following
.... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
..... system 1..1 uri Identity of the terminology system
Fixed Value: http://snomed.info/sct
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 363346000
..... display 1..1 string Representation defined by the system
Fixed Value: Malignant neoplastic disease
... bodySite 1..* CodeableConcept Anatomical location, if relevant
Binding: ICDO3Topography (0.2.0) (required)
... subject 1..1 Reference(Cancer Patient Profile(0.2.0)) (USCDI) Who has the condition?
... encounter 0..1 Reference(Encounter) Not used in this profile
... recordedDate 0..1 dateTime Not used in this profile
... recorder 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson) Not used in this profile
... asserter 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson) Not used in this profile
... stage 0..* BackboneElement Not used in this profile
... evidence 0..* BackboneElement Not used in this profile

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Condition.extension:histologyMorphologyBehavior.​value[x] Base required ICD-O-3 Morphology Behavior 📍0.2.0 This IG
Condition.bodySite Base required ICD-O-3 Topography 📍0.2.0 This IG

Constraints

Id Grade Path(s) Description Expression
o-con-1 error Condition If clinicalStatus is 'recurrence', the recurrenceOf extension must be provided. clinicalStatus.exists() and clinicalStatus.coding.code = 'recurrence' implies extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-of').exists()
o-con-2 error Condition If clinicalStatus is 'recurrence', the type of recurrence must be provided. clinicalStatus.exists() and clinicalStatus.coding.code = 'recurrence' implies clinicalStatus.extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-type').exists()
o-con-req-1 error Condition The subject element is required and must be provided. subject.exists() and subject.resolve().is(Patient)
o-con-req-2 error Condition The assertedDate extension is required and must be provided. extension('http://hl7.org/fhir/StructureDefinition/condition-assertedDate').exists()
o-con-req-3 error Condition The bodySite element is required and must be provided. bodySite.exists() and bodySite.coding.exists()
o-con-req-4 error Condition The histologyMorphologyBehavior extension is required and must be provided. extension('http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-histology-morphology-behavior').exists()

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Condition C 0..* PrimaryCancerCondition(4.0.0) Detailed information about conditions, problems or diagnoses
Constraints: con-3, con-4, con-5, o-con-1, o-con-2, o-con-req-1, o-con-req-2, o-con-req-3, o-con-req-4
... 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
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... Slices for extension S 1..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
.... extension:assertedDate S 0..1 dateTime (USCDI) Date the condition was first asserted
URL: http://hl7.org/fhir/StructureDefinition/condition-assertedDate
Constraints: ext-1
.... extension:histologyMorphologyBehavior S 1..1 (Complex) Histology-Morphology-Behavior Extension
URL: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-histology-morphology-behavior
Constraints: ext-1
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..0
..... url 1..1 uri "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-histology-morphology-behavior"
..... value[x] 1..1 CodeableConcept Value of extension
Binding: ICDO3MorphologyBehavior (0.2.0) (required)
.... extension:recurrenceOf S 0..1 Reference(Primary Cancer Condition Profile(4.0.0)) Recurrence Of
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-of
Constraints: ext-1
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
Constraints: ext-1
... identifier Σ 0..* Identifier External Ids for this condition
... clinicalStatus ?!SΣC 0..1 CodeableConcept (USCDI) active | recurrence | relapse | inactive | remission | resolved
Binding: ConditionClinicalStatusCodes (required)
.... id 0..1 string Unique id for inter-element referencing
.... Slices for extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:recurrenceType 0..1 CodeableConcept Recurrence Type
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-type
Binding: RecurrenceTypeVS (0.2.0) (required)
Constraints: ext-1
.... coding Σ 0..* Coding Code defined by a terminology system
.... text Σ 0..1 string Plain text representation of the concept
... verificationStatus ?!SΣC 0..1 CodeableConcept Not used in this profile
Binding: ConditionVerificationStatus (required)
... Slices for category S 1..* CodeableConcept (USCDI) category codes
Slice: Unordered, Open by pattern:$this
Binding: ConditionCategoryCodes (extensible): A category assigned to the condition.
.... category:us-core S 1..* CodeableConcept (USCDI) problem-list-item | health-concern
Binding: USCoreProblemOrHealthConcern (6.1.0) (required): Note that other codes are permitted, see Required Bindings When Slicing by Value Sets
.... category:screening-assessment S 0..* CodeableConcept (USCDI) USCDI Health Status/Assessments Data Class
Binding: USCoreScreeningAssessmentConditionCategory (6.1.0) (required): Note that other codes are permitted, see Required Bindings When Slicing by Value Sets
... severity 0..1 CodeableConcept Not used in this profile
Binding: Condition/DiagnosisSeverity (preferred): A subjective assessment of the severity of the condition as evaluated by the clinician.
... code SΣ 1..1 CodeableConcept (USCDI) Identification of the condition, problem or diagnosis
Binding: PrimaryCancerDisorderVS (4.0.0) (extensible)
Required Pattern: At least the following
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... system 1..1 uri Identity of the terminology system
Fixed Value: http://snomed.info/sct
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 363346000
..... display 1..1 string Representation defined by the system
Fixed Value: Malignant neoplastic disease
..... userSelected 0..1 boolean If this coding was chosen directly by the user
.... text 0..1 string Plain text representation of the concept
... bodySite SΣ 1..* CodeableConcept Anatomical location, if relevant
Binding: ICDO3Topography (0.2.0) (required)
.... id 0..1 string Unique id for inter-element referencing
.... Slices for extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:locationQualifier S 0..* CodeableConcept General location qualifier (excluding laterality) for this bodySite
URL: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-body-location-qualifier
Binding: Body Location Qualifier Value Set (required)
Constraints: ext-1
..... extension:lateralityQualifier S 0..1 CodeableConcept Laterality qualifier for this bodySite
URL: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-laterality-qualifier
Binding: Laterality Qualifier Value Set (required)
Constraints: ext-1
.... coding Σ 0..* Coding Code defined by a terminology system
.... text Σ 0..1 string Plain text representation of the concept
... subject SΣ 1..1 Reference(Cancer Patient Profile(0.2.0)) (USCDI) Who has the condition?
... encounter Σ 0..1 Reference(Encounter) Not used in this profile
... onset[x] SΣ 0..1 (USCDI) Estimated or actual date, date-time, or age
.... onsetDateTime dateTime S
.... onsetAge Age
.... onsetPeriod Period
.... onsetRange Range
.... onsetString string
... abatement[x] SC 0..1 (USCDI) When in resolution/remission
.... abatementDateTime dateTime S
.... abatementAge Age
.... abatementPeriod Period
.... abatementRange Range
.... abatementString string
... recordedDate SΣ 0..1 dateTime Not used in this profile
... recorder Σ 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson) Not used in this profile
... asserter Σ 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson) Not used in this profile
... stage SC 0..* BackboneElement Not used in this profile
Constraints: con-1
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
.... summary C 0..1 CodeableConcept Stage at time of last staging.
Binding: ConditionStage (example): Codes describing condition stages (e.g. Cancer stages).
.... assessment SC 0..* Reference(Cancer Stage Profile(4.0.0)) Formal record of assessment
.... type 0..1 CodeableConcept The type of stage Staging system or method used.
Binding: CancerStagingMethodVS (4.0.0) (extensible)
... evidence C 0..* BackboneElement Not used in this profile
Constraints: con-2
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
.... code ΣC 0..* CodeableConcept Manifestation/symptom
Binding: CancerDiseaseStatusEvidenceTypeVS (4.0.0) (required)
.... detail ΣC 0..* Reference(Resource) Supporting information found elsewhere
... note 0..* Annotation Additional information about the Condition

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Condition.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Condition.extension:histologyMorphologyBehavior.​value[x] Base required ICD-O-3 Morphology Behavior 📍0.2.0 This IG
Condition.clinicalStatus Base required Condition Clinical Status Codes 📍4.0.1 FHIR Std.
Condition.verificationStatus Base required ConditionVerificationStatus 📍4.0.1 FHIR Std.
Condition.category Base extensible Condition Category Codes 📍4.0.1 FHIR Std.
Condition.category:us-core Base required US Core Problem or Health Concern 📍6.1.0 US Core v6.1
Condition.category:screening-assessment Base required US Core Screening Assessment Condition Category 📍6.1.0 US Core v6.1
Condition.severity Base preferred Condition/Diagnosis Severity 📍4.0.1 FHIR Std.
Condition.code Base extensible Primary Cancer Disorder Value Set 📍4.0.0 minimal Common Oncology Data Elements v4.0
Condition.bodySite Base required ICD-O-3 Topography 📍0.2.0 This IG
Condition.stage.summary Base example Condition Stage 📍4.0.1 FHIR Std.
Condition.stage.type Base extensible Cancer Staging Method Value Set 📍4.0.0 minimal Common Oncology Data Elements v4.0
Condition.evidence.code Base required Cancer Disease Status Evidence Type Value Set 📍4.0.0 minimal Common Oncology Data Elements v4.0

Constraints

Id Grade Path(s) Description Expression
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 Condition.meta, Condition.implicitRules, Condition.language, Condition.text, Condition.extension, Condition.extension:assertedDate, Condition.extension:histologyMorphologyBehavior, Condition.extension:histologyMorphologyBehavior.value[x], Condition.extension:recurrenceOf, Condition.modifierExtension, Condition.identifier, Condition.clinicalStatus, Condition.clinicalStatus.extension, Condition.clinicalStatus.extension:recurrenceType, Condition.clinicalStatus.coding, Condition.clinicalStatus.text, Condition.verificationStatus, Condition.category, Condition.category:us-core, Condition.category:screening-assessment, Condition.severity, Condition.code, Condition.bodySite, Condition.bodySite.extension, Condition.bodySite.extension:locationQualifier, Condition.bodySite.extension:lateralityQualifier, Condition.bodySite.coding, Condition.bodySite.text, Condition.subject, Condition.encounter, Condition.onset[x], Condition.abatement[x], Condition.recordedDate, Condition.recorder, Condition.asserter, Condition.stage, Condition.stage.extension, Condition.stage.modifierExtension, Condition.stage.summary, Condition.stage.assessment, Condition.stage.type, Condition.evidence, Condition.evidence.extension, Condition.evidence.modifierExtension, Condition.evidence.code, Condition.evidence.detail, Condition.note All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error Condition.extension, Condition.extension:assertedDate, Condition.extension:histologyMorphologyBehavior, Condition.extension:recurrenceOf, Condition.modifierExtension, Condition.clinicalStatus.extension, Condition.clinicalStatus.extension:recurrenceType, Condition.bodySite.extension, Condition.bodySite.extension:locationQualifier, Condition.bodySite.extension:lateralityQualifier, Condition.stage.extension, Condition.stage.modifierExtension, Condition.evidence.extension, Condition.evidence.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()
o-con-1 error Condition If clinicalStatus is 'recurrence', the recurrenceOf extension must be provided. clinicalStatus.exists() and clinicalStatus.coding.code = 'recurrence' implies extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-of').exists()
o-con-2 error Condition If clinicalStatus is 'recurrence', the type of recurrence must be provided. clinicalStatus.exists() and clinicalStatus.coding.code = 'recurrence' implies clinicalStatus.extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-recurrence-type').exists()
o-con-req-1 error Condition The subject element is required and must be provided. subject.exists() and subject.resolve().is(Patient)
o-con-req-2 error Condition The assertedDate extension is required and must be provided. extension('http://hl7.org/fhir/StructureDefinition/condition-assertedDate').exists()
o-con-req-3 error Condition The bodySite element is required and must be provided. bodySite.exists() and bodySite.coding.exists()
o-con-req-4 error Condition The histologyMorphologyBehavior extension is required and must be provided. extension('http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-histology-morphology-behavior').exists()

 

Other representations of profile: CSV, Excel, Schematron