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: Therapy Line Profile

Official URL: http://onconova.github.io/fhir/StructureDefinition/onconova-therapy-line Version: 0.2.0
Active as of 2026-03-18 Computable Name: OnconovaTherapyLine

A profile representing a line of therapy in a cancer treatment regimen, including details about the therapy line number, associated treatments, and relevant dates. It is based on a FHIR EpisodeOfCare to capture the specific resources involved in the therapy line. Therapy lines in Onconova are assigned automatically based on existing Procedure and MedicationAdministration resources and are not usually created manually.

Conformance:

EpisodeOfCare resources representing a therapy line in the scope of Onconova SHALL conform to this profile. Any resource intended to conform to this profile SHOULD populate meta.profile accordingly.

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
.. EpisodeOfCare C 0..* EpisodeOfCare An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility
Constraints: o-lin-req-1, o-lin-req-2, o-lin-req-3, o-lin-req-4
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:therapyLineNumber O 0..1 positiveInt The number representing the sequence of the therapy line in the overall treatment regimen
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-number
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
.... extension:therapyLineIntent O 0..1 CodeableConcept The intent of the therapy line, such as curative or palliative
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-intent
Binding: Treatment Intents Value Set (required)
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
.... extension:therapyLineProgressionFreeSurvival O 0..1 Duration The progression-free survival duration for the therapy line
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-progression-free-survival
ObligationsActor
MAY:ignore Creator (Onconova)
MAY:persist Consumer (Onconova)
.... extension:therapyLineProgressionDate O 0..1 date The date when disease progression was observed during or after the therapy line
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-progression-date
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... statusHistory 0..* BackboneElement Not used in this profile
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... status 1..1 code planned | waitlist | active | onhold | finished | cancelled | entered-in-error
Binding: EpisodeOfCareStatus (required): The status of the episode of care.
.... period 1..1 Period Duration the EpisodeOfCare was in the specified status
... type Σ 0..* CodeableConcept Type/class - e.g. specialist referral, disease management
Binding: EpisodeOfCareType (example): The type of the episode of care.

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://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: C133518
..... display 1..1 string Representation defined by the system
Fixed Value: Line of Therapy
..... userSelected 0..1 boolean If this coding was chosen directly by the user
.... text 0..1 string Plain text representation of the concept
... diagnosis Σ 0..* BackboneElement Not used in this profile
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... condition Σ 1..1 Reference(Condition) Conditions/problems/diagnoses this episode of care is for
... patient SOΣ 1..1 Reference(Cancer Patient Profile) The patient receiving the therapy
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
... managingOrganization Σ 0..1 Reference(Organization) Not used in this profile
... period SOΣ 0..1 Period The period during which the therapy line was performed
ObligationsActor
MAY:ignore Creator (Onconova)
MAY:persist Consumer (Onconova)
... referralRequest 0..* Reference(ServiceRequest) Not used in this profile
... careManager 0..1 Reference(Practitioner | PractitionerRole) Not used in this profile
... team 0..* Reference(CareTeam) Not used in this profile
... account 0..* Reference(Account) Not used in this profile

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
EpisodeOfCare.status Base required EpisodeOfCareStatus 📍4.0.1 FHIR Std.
EpisodeOfCare.statusHistory.​status Base required EpisodeOfCareStatus 📍4.0.1 FHIR Std.
EpisodeOfCare.type Base example Episode of care type 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error EpisodeOfCare If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error EpisodeOfCare 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 EpisodeOfCare 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 EpisodeOfCare If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice EpisodeOfCare 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()
o-lin-req-1 error EpisodeOfCare The patient element is required and must be provided. patient.exists()
o-lin-req-2 error EpisodeOfCare The period element is required and must be provided. period.exists()
o-lin-req-3 error EpisodeOfCare The therapyLineNumber extension is required and must be provided. extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-number').exists()
o-lin-req-4 error EpisodeOfCare The therapyLineIntent extension is required and must be provided. extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-intent').exists()

This structure is derived from EpisodeOfCare

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. EpisodeOfCare C 0..* EpisodeOfCare An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility
Constraints: o-lin-req-1, o-lin-req-2, o-lin-req-3, o-lin-req-4
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:therapyLineNumber O 0..1 positiveInt The number representing the sequence of the therapy line in the overall treatment regimen
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-number
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
.... extension:therapyLineIntent O 0..1 CodeableConcept The intent of the therapy line, such as curative or palliative
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-intent
Binding: Treatment Intents Value Set (required)
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
.... extension:therapyLineProgressionFreeSurvival O 0..1 Duration The progression-free survival duration for the therapy line
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-progression-free-survival
ObligationsActor
MAY:ignore Creator (Onconova)
MAY:persist Consumer (Onconova)
.... extension:therapyLineProgressionDate O 0..1 date The date when disease progression was observed during or after the therapy line
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-progression-date
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
... status 1..1 code Not used in this profile
... statusHistory 0..* BackboneElement Not used in this profile
.... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
..... system 1..1 uri Identity of the terminology system
Fixed Value: http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: C133518
..... display 1..1 string Representation defined by the system
Fixed Value: Line of Therapy
... diagnosis 0..* BackboneElement Not used in this profile
... patient SO 1..1 Reference(Cancer Patient Profile) The patient receiving the therapy
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
... managingOrganization 0..1 Reference(Organization) Not used in this profile
... period SO 0..1 Period The period during which the therapy line was performed
ObligationsActor
MAY:ignore Creator (Onconova)
MAY:persist Consumer (Onconova)
... referralRequest 0..* Reference(ServiceRequest) Not used in this profile
... careManager 0..1 Reference(Practitioner | PractitionerRole) Not used in this profile
... team 0..* Reference(CareTeam) Not used in this profile
... account 0..* Reference(Account) Not used in this profile

doco Documentation for this format

Constraints

Id Grade Path(s) Description Expression
o-lin-req-1 error EpisodeOfCare The patient element is required and must be provided. patient.exists()
o-lin-req-2 error EpisodeOfCare The period element is required and must be provided. period.exists()
o-lin-req-3 error EpisodeOfCare The therapyLineNumber extension is required and must be provided. extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-number').exists()
o-lin-req-4 error EpisodeOfCare The therapyLineIntent extension is required and must be provided. extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-intent').exists()
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. EpisodeOfCare C 0..* EpisodeOfCare An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility
Constraints: o-lin-req-1, o-lin-req-2, o-lin-req-3, o-lin-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 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:therapyLineNumber O 0..1 positiveInt The number representing the sequence of the therapy line in the overall treatment regimen
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-number
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
.... extension:therapyLineIntent O 0..1 CodeableConcept The intent of the therapy line, such as curative or palliative
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-intent
Binding: Treatment Intents Value Set (required)
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
.... extension:therapyLineProgressionFreeSurvival O 0..1 Duration The progression-free survival duration for the therapy line
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-progression-free-survival
ObligationsActor
MAY:ignore Creator (Onconova)
MAY:persist Consumer (Onconova)
.... extension:therapyLineProgressionDate O 0..1 date The date when disease progression was observed during or after the therapy line
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-progression-date
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier 0..* Identifier Business Identifier(s) relevant for this EpisodeOfCare
... status ?!Σ 1..1 code Not used in this profile
Binding: EpisodeOfCareStatus (required): The status of the episode of care.
... statusHistory 0..* BackboneElement Not used in this profile
.... 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
.... status 1..1 code planned | waitlist | active | onhold | finished | cancelled | entered-in-error
Binding: EpisodeOfCareStatus (required): The status of the episode of care.
.... period 1..1 Period Duration the EpisodeOfCare was in the specified status
... type Σ 0..* CodeableConcept Type/class - e.g. specialist referral, disease management
Binding: EpisodeOfCareType (example): The type of the episode of care.

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://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: C133518
..... display 1..1 string Representation defined by the system
Fixed Value: Line of Therapy
..... userSelected 0..1 boolean If this coding was chosen directly by the user
.... text 0..1 string Plain text representation of the concept
... diagnosis Σ 0..* BackboneElement Not used in this profile
.... 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
.... condition Σ 1..1 Reference(Condition) Conditions/problems/diagnoses this episode of care is for
.... role Σ 0..1 CodeableConcept Role that this diagnosis has within the episode of care (e.g. admission, billing, discharge …)
Binding: DiagnosisRole (preferred): The type of diagnosis this condition represents.
.... rank Σ 0..1 positiveInt Ranking of the diagnosis (for each role type)
... patient SOΣ 1..1 Reference(Cancer Patient Profile) The patient receiving the therapy
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
... managingOrganization Σ 0..1 Reference(Organization) Not used in this profile
... period SOΣ 0..1 Period The period during which the therapy line was performed
ObligationsActor
MAY:ignore Creator (Onconova)
MAY:persist Consumer (Onconova)
... referralRequest 0..* Reference(ServiceRequest) Not used in this profile
... careManager 0..1 Reference(Practitioner | PractitionerRole) Not used in this profile
... team 0..* Reference(CareTeam) Not used in this profile
... account 0..* Reference(Account) Not used in this profile

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
EpisodeOfCare.language Base preferred Common Languages 📍4.0.1 FHIR Std.
EpisodeOfCare.status Base required EpisodeOfCareStatus 📍4.0.1 FHIR Std.
EpisodeOfCare.statusHistory.​status Base required EpisodeOfCareStatus 📍4.0.1 FHIR Std.
EpisodeOfCare.type Base example Episode of care type 📍4.0.1 FHIR Std.
EpisodeOfCare.diagnosis.​role Base preferred DiagnosisRole 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error EpisodeOfCare If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error EpisodeOfCare 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 EpisodeOfCare 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 EpisodeOfCare If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice EpisodeOfCare 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()
o-lin-req-1 error EpisodeOfCare The patient element is required and must be provided. patient.exists()
o-lin-req-2 error EpisodeOfCare The period element is required and must be provided. period.exists()
o-lin-req-3 error EpisodeOfCare The therapyLineNumber extension is required and must be provided. extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-number').exists()
o-lin-req-4 error EpisodeOfCare The therapyLineIntent extension is required and must be provided. extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-intent').exists()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. EpisodeOfCare C 0..* EpisodeOfCare An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility
Constraints: o-lin-req-1, o-lin-req-2, o-lin-req-3, o-lin-req-4
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:therapyLineNumber O 0..1 positiveInt The number representing the sequence of the therapy line in the overall treatment regimen
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-number
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
.... extension:therapyLineIntent O 0..1 CodeableConcept The intent of the therapy line, such as curative or palliative
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-intent
Binding: Treatment Intents Value Set (required)
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
.... extension:therapyLineProgressionFreeSurvival O 0..1 Duration The progression-free survival duration for the therapy line
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-progression-free-survival
ObligationsActor
MAY:ignore Creator (Onconova)
MAY:persist Consumer (Onconova)
.... extension:therapyLineProgressionDate O 0..1 date The date when disease progression was observed during or after the therapy line
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-progression-date
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... statusHistory 0..* BackboneElement Not used in this profile
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... status 1..1 code planned | waitlist | active | onhold | finished | cancelled | entered-in-error
Binding: EpisodeOfCareStatus (required): The status of the episode of care.
.... period 1..1 Period Duration the EpisodeOfCare was in the specified status
... type Σ 0..* CodeableConcept Type/class - e.g. specialist referral, disease management
Binding: EpisodeOfCareType (example): The type of the episode of care.

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://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: C133518
..... display 1..1 string Representation defined by the system
Fixed Value: Line of Therapy
..... userSelected 0..1 boolean If this coding was chosen directly by the user
.... text 0..1 string Plain text representation of the concept
... diagnosis Σ 0..* BackboneElement Not used in this profile
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... condition Σ 1..1 Reference(Condition) Conditions/problems/diagnoses this episode of care is for
... patient SOΣ 1..1 Reference(Cancer Patient Profile) The patient receiving the therapy
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
... managingOrganization Σ 0..1 Reference(Organization) Not used in this profile
... period SOΣ 0..1 Period The period during which the therapy line was performed
ObligationsActor
MAY:ignore Creator (Onconova)
MAY:persist Consumer (Onconova)
... referralRequest 0..* Reference(ServiceRequest) Not used in this profile
... careManager 0..1 Reference(Practitioner | PractitionerRole) Not used in this profile
... team 0..* Reference(CareTeam) Not used in this profile
... account 0..* Reference(Account) Not used in this profile

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
EpisodeOfCare.status Base required EpisodeOfCareStatus 📍4.0.1 FHIR Std.
EpisodeOfCare.statusHistory.​status Base required EpisodeOfCareStatus 📍4.0.1 FHIR Std.
EpisodeOfCare.type Base example Episode of care type 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error EpisodeOfCare If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error EpisodeOfCare 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 EpisodeOfCare 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 EpisodeOfCare If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice EpisodeOfCare 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()
o-lin-req-1 error EpisodeOfCare The patient element is required and must be provided. patient.exists()
o-lin-req-2 error EpisodeOfCare The period element is required and must be provided. period.exists()
o-lin-req-3 error EpisodeOfCare The therapyLineNumber extension is required and must be provided. extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-number').exists()
o-lin-req-4 error EpisodeOfCare The therapyLineIntent extension is required and must be provided. extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-intent').exists()

Differential View

This structure is derived from EpisodeOfCare

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. EpisodeOfCare C 0..* EpisodeOfCare An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility
Constraints: o-lin-req-1, o-lin-req-2, o-lin-req-3, o-lin-req-4
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:therapyLineNumber O 0..1 positiveInt The number representing the sequence of the therapy line in the overall treatment regimen
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-number
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
.... extension:therapyLineIntent O 0..1 CodeableConcept The intent of the therapy line, such as curative or palliative
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-intent
Binding: Treatment Intents Value Set (required)
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
.... extension:therapyLineProgressionFreeSurvival O 0..1 Duration The progression-free survival duration for the therapy line
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-progression-free-survival
ObligationsActor
MAY:ignore Creator (Onconova)
MAY:persist Consumer (Onconova)
.... extension:therapyLineProgressionDate O 0..1 date The date when disease progression was observed during or after the therapy line
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-progression-date
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
... status 1..1 code Not used in this profile
... statusHistory 0..* BackboneElement Not used in this profile
.... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
..... system 1..1 uri Identity of the terminology system
Fixed Value: http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: C133518
..... display 1..1 string Representation defined by the system
Fixed Value: Line of Therapy
... diagnosis 0..* BackboneElement Not used in this profile
... patient SO 1..1 Reference(Cancer Patient Profile) The patient receiving the therapy
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
... managingOrganization 0..1 Reference(Organization) Not used in this profile
... period SO 0..1 Period The period during which the therapy line was performed
ObligationsActor
MAY:ignore Creator (Onconova)
MAY:persist Consumer (Onconova)
... referralRequest 0..* Reference(ServiceRequest) Not used in this profile
... careManager 0..1 Reference(Practitioner | PractitionerRole) Not used in this profile
... team 0..* Reference(CareTeam) Not used in this profile
... account 0..* Reference(Account) Not used in this profile

doco Documentation for this format

Constraints

Id Grade Path(s) Description Expression
o-lin-req-1 error EpisodeOfCare The patient element is required and must be provided. patient.exists()
o-lin-req-2 error EpisodeOfCare The period element is required and must be provided. period.exists()
o-lin-req-3 error EpisodeOfCare The therapyLineNumber extension is required and must be provided. extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-number').exists()
o-lin-req-4 error EpisodeOfCare The therapyLineIntent extension is required and must be provided. extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-intent').exists()

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. EpisodeOfCare C 0..* EpisodeOfCare An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility
Constraints: o-lin-req-1, o-lin-req-2, o-lin-req-3, o-lin-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 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:therapyLineNumber O 0..1 positiveInt The number representing the sequence of the therapy line in the overall treatment regimen
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-number
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
.... extension:therapyLineIntent O 0..1 CodeableConcept The intent of the therapy line, such as curative or palliative
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-intent
Binding: Treatment Intents Value Set (required)
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
.... extension:therapyLineProgressionFreeSurvival O 0..1 Duration The progression-free survival duration for the therapy line
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-progression-free-survival
ObligationsActor
MAY:ignore Creator (Onconova)
MAY:persist Consumer (Onconova)
.... extension:therapyLineProgressionDate O 0..1 date The date when disease progression was observed during or after the therapy line
URL: http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-progression-date
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier 0..* Identifier Business Identifier(s) relevant for this EpisodeOfCare
... status ?!Σ 1..1 code Not used in this profile
Binding: EpisodeOfCareStatus (required): The status of the episode of care.
... statusHistory 0..* BackboneElement Not used in this profile
.... 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
.... status 1..1 code planned | waitlist | active | onhold | finished | cancelled | entered-in-error
Binding: EpisodeOfCareStatus (required): The status of the episode of care.
.... period 1..1 Period Duration the EpisodeOfCare was in the specified status
... type Σ 0..* CodeableConcept Type/class - e.g. specialist referral, disease management
Binding: EpisodeOfCareType (example): The type of the episode of care.

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://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: C133518
..... display 1..1 string Representation defined by the system
Fixed Value: Line of Therapy
..... userSelected 0..1 boolean If this coding was chosen directly by the user
.... text 0..1 string Plain text representation of the concept
... diagnosis Σ 0..* BackboneElement Not used in this profile
.... 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
.... condition Σ 1..1 Reference(Condition) Conditions/problems/diagnoses this episode of care is for
.... role Σ 0..1 CodeableConcept Role that this diagnosis has within the episode of care (e.g. admission, billing, discharge …)
Binding: DiagnosisRole (preferred): The type of diagnosis this condition represents.
.... rank Σ 0..1 positiveInt Ranking of the diagnosis (for each role type)
... patient SOΣ 1..1 Reference(Cancer Patient Profile) The patient receiving the therapy
ObligationsActor
SHALL:populate Creator (Onconova)
SHOULD:persist Consumer (Onconova)
... managingOrganization Σ 0..1 Reference(Organization) Not used in this profile
... period SOΣ 0..1 Period The period during which the therapy line was performed
ObligationsActor
MAY:ignore Creator (Onconova)
MAY:persist Consumer (Onconova)
... referralRequest 0..* Reference(ServiceRequest) Not used in this profile
... careManager 0..1 Reference(Practitioner | PractitionerRole) Not used in this profile
... team 0..* Reference(CareTeam) Not used in this profile
... account 0..* Reference(Account) Not used in this profile

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
EpisodeOfCare.language Base preferred Common Languages 📍4.0.1 FHIR Std.
EpisodeOfCare.status Base required EpisodeOfCareStatus 📍4.0.1 FHIR Std.
EpisodeOfCare.statusHistory.​status Base required EpisodeOfCareStatus 📍4.0.1 FHIR Std.
EpisodeOfCare.type Base example Episode of care type 📍4.0.1 FHIR Std.
EpisodeOfCare.diagnosis.​role Base preferred DiagnosisRole 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error EpisodeOfCare If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error EpisodeOfCare 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 EpisodeOfCare 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 EpisodeOfCare If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice EpisodeOfCare 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()
o-lin-req-1 error EpisodeOfCare The patient element is required and must be provided. patient.exists()
o-lin-req-2 error EpisodeOfCare The period element is required and must be provided. period.exists()
o-lin-req-3 error EpisodeOfCare The therapyLineNumber extension is required and must be provided. extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-number').exists()
o-lin-req-4 error EpisodeOfCare The therapyLineIntent extension is required and must be provided. extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-intent').exists()

 

Other representations of profile: CSV, Excel, Schematron