Skip to content

onconova.interoperability.fhir.models.TherapyLine

NoneType module-attribute

OnconovaTherapyLine

Bases: EpisodeOfCare

An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time.

account class-attribute instance-attribute

careManager class-attribute instance-attribute

diagnosis class-attribute instance-attribute

extension class-attribute instance-attribute

managingOrganization class-attribute instance-attribute

patient class-attribute instance-attribute

period class-attribute instance-attribute

referralRequest class-attribute instance-attribute

status class-attribute instance-attribute

statusHistory class-attribute instance-attribute

team class-attribute instance-attribute

type class-attribute instance-attribute

FHIR_o_lin_req_1_constraint_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def FHIR_o_lin_req_1_constraint_validator(self):
    return validate_model_constraint(
        self,
        expression="patient.exists()",
        human="The patient element is required and must be provided.",
        key="o-lin-req-1",
        severity="error",
    )

FHIR_o_lin_req_3_constraint_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def FHIR_o_lin_req_3_constraint_validator(self):
    return validate_model_constraint(
        self,
        expression="extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-number').exists()",
        human="The therapyLineNumber extension is required and must be provided.",
        key="o-lin-req-3",
        severity="error",
    )

FHIR_o_lin_req_4_constraint_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def FHIR_o_lin_req_4_constraint_validator(self):
    return validate_model_constraint(
        self,
        expression="extension('http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-intent').exists()",
        human="The therapyLineIntent extension is required and must be provided.",
        key="o-lin-req-4",
        severity="error",
    )

FHIR_type_pattern_constraint(value) classmethod

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@field_validator(*("type",), mode="after", check_fields=None)
@classmethod
def FHIR_type_pattern_constraint(cls, value):
    return validate_FHIR_element_pattern(
        cls,
        value,
        pattern=CodeableConcept(
            coding=[
                Coding(
                    code="C133518",
                    display="Line of Therapy",
                    system="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl",
                )
            ]
        ),
    )

extension_slicing_cardinality_validator(value) classmethod

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@field_validator(*("extension",), mode="after", check_fields=None)
@classmethod
def extension_slicing_cardinality_validator(cls, value):
    return validate_slicing_cardinalities(
        cls,
        value,
        field_name="extension",
    )

OnconovaTherapyLineTherapyLineIntent

Bases: TherapyLineIntent, FHIRSliceModel

May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

max_cardinality class-attribute

min_cardinality class-attribute

FHIR_ele_1_constraint_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def FHIR_ele_1_constraint_validator(self):
    return validate_model_constraint(
        self,
        expression="hasValue() or (children().count() > id.count())",
        human="All FHIR elements must have a @value or children",
        key="ele-1",
        severity="error",
    )

FHIR_ext_1_constraint_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def FHIR_ext_1_constraint_validator(self):
    return validate_model_constraint(
        self,
        expression="extension.exists() != value.exists()",
        human="Must have either extensions or value[x], not both",
        key="ext-1",
        severity="error",
    )

OnconovaTherapyLineTherapyLineNumber

Bases: TherapyLineNumber, FHIRSliceModel

May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

max_cardinality class-attribute

min_cardinality class-attribute

FHIR_ele_1_constraint_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def FHIR_ele_1_constraint_validator(self):
    return validate_model_constraint(
        self,
        expression="hasValue() or (children().count() > id.count())",
        human="All FHIR elements must have a @value or children",
        key="ele-1",
        severity="error",
    )

FHIR_ext_1_constraint_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def FHIR_ext_1_constraint_validator(self):
    return validate_model_constraint(
        self,
        expression="extension.exists() != value.exists()",
        human="Must have either extensions or value[x], not both",
        key="ext-1",
        severity="error",
    )

OnconovaTherapyLineTherapyLineProgressionDate

Bases: TherapyLineProgressionDate, FHIRSliceModel

May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

max_cardinality class-attribute

min_cardinality class-attribute

FHIR_ele_1_constraint_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def FHIR_ele_1_constraint_validator(self):
    return validate_model_constraint(
        self,
        expression="hasValue() or (children().count() > id.count())",
        human="All FHIR elements must have a @value or children",
        key="ele-1",
        severity="error",
    )

FHIR_ext_1_constraint_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def FHIR_ext_1_constraint_validator(self):
    return validate_model_constraint(
        self,
        expression="extension.exists() != value.exists()",
        human="Must have either extensions or value[x], not both",
        key="ext-1",
        severity="error",
    )

OnconovaTherapyLineTherapyLineProgressionFreeSurvival

Bases: TherapyLineProgressionFreeSurvival, FHIRSliceModel

May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

max_cardinality class-attribute

min_cardinality class-attribute

FHIR_ele_1_constraint_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def FHIR_ele_1_constraint_validator(self):
    return validate_model_constraint(
        self,
        expression="hasValue() or (children().count() > id.count())",
        human="All FHIR elements must have a @value or children",
        key="ele-1",
        severity="error",
    )

FHIR_ext_1_constraint_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def FHIR_ext_1_constraint_validator(self):
    return validate_model_constraint(
        self,
        expression="extension.exists() != value.exists()",
        human="Must have either extensions or value[x], not both",
        key="ext-1",
        severity="error",
    )

TherapyLineIntent

Bases: Extension

The intent of the therapy line, such as curative or palliative.

extension class-attribute instance-attribute

url class-attribute instance-attribute

value property

valueCodeableConcept class-attribute instance-attribute

FHIR_ext_1_constraint_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def FHIR_ext_1_constraint_validator(self):
    return validate_model_constraint(
        self,
        expression="extension.exists() != value.exists()",
        human="Must have either extensions or value[x], not both",
        key="ext-1",
        severity="error",
    )

FHIR_url_fixed_value_constraint(value) classmethod

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@field_validator(*("url",), mode="after", check_fields=None)
@classmethod
def FHIR_url_fixed_value_constraint(cls, value):
    return validate_FHIR_element_fixed_value(
        cls,
        value,
        constant="http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-intent",
    )

extension_slicing_cardinality_validator(value) classmethod

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@field_validator(*("extension",), mode="after", check_fields=None)
@classmethod
def extension_slicing_cardinality_validator(cls, value):
    return validate_slicing_cardinalities(
        cls,
        value,
        field_name="extension",
    )

value_type_choice_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def value_type_choice_validator(self):
    return validate_type_choice_element(
        self,
        field_types=["CodeableConcept"],
        field_name_base="value",
        required=False,
    )

TherapyLineNumber

Bases: Extension

The number representing the sequence of the therapy line in the overall treatment regimen.

extension class-attribute instance-attribute

url class-attribute instance-attribute

value property

valuePositiveInt class-attribute instance-attribute

FHIR_ext_1_constraint_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def FHIR_ext_1_constraint_validator(self):
    return validate_model_constraint(
        self,
        expression="extension.exists() != value.exists()",
        human="Must have either extensions or value[x], not both",
        key="ext-1",
        severity="error",
    )

FHIR_url_fixed_value_constraint(value) classmethod

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@field_validator(*("url",), mode="after", check_fields=None)
@classmethod
def FHIR_url_fixed_value_constraint(cls, value):
    return validate_FHIR_element_fixed_value(
        cls,
        value,
        constant="http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-number",
    )

extension_slicing_cardinality_validator(value) classmethod

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@field_validator(*("extension",), mode="after", check_fields=None)
@classmethod
def extension_slicing_cardinality_validator(cls, value):
    return validate_slicing_cardinalities(
        cls,
        value,
        field_name="extension",
    )

value_type_choice_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def value_type_choice_validator(self):
    return validate_type_choice_element(
        self,
        field_types=["PositiveInt"],
        field_name_base="value",
        required=False,
    )

TherapyLineProgressionDate

Bases: Extension

The date when disease progression was observed during or after the therapy line.

extension class-attribute instance-attribute

url class-attribute instance-attribute

value property

valueDate class-attribute instance-attribute

FHIR_ext_1_constraint_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def FHIR_ext_1_constraint_validator(self):
    return validate_model_constraint(
        self,
        expression="extension.exists() != value.exists()",
        human="Must have either extensions or value[x], not both",
        key="ext-1",
        severity="error",
    )

FHIR_url_fixed_value_constraint(value) classmethod

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@field_validator(*("url",), mode="after", check_fields=None)
@classmethod
def FHIR_url_fixed_value_constraint(cls, value):
    return validate_FHIR_element_fixed_value(
        cls,
        value,
        constant="http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-progression-date",
    )

extension_slicing_cardinality_validator(value) classmethod

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@field_validator(*("extension",), mode="after", check_fields=None)
@classmethod
def extension_slicing_cardinality_validator(cls, value):
    return validate_slicing_cardinalities(
        cls,
        value,
        field_name="extension",
    )

value_type_choice_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def value_type_choice_validator(self):
    return validate_type_choice_element(
        self,
        field_types=["Date"],
        field_name_base="value",
        required=False,
    )

TherapyLineProgressionFreeSurvival

Bases: Extension

The progression-free survival duration for the therapy line.

extension class-attribute instance-attribute

url class-attribute instance-attribute

value property

valueDuration class-attribute instance-attribute

FHIR_ext_1_constraint_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def FHIR_ext_1_constraint_validator(self):
    return validate_model_constraint(
        self,
        expression="extension.exists() != value.exists()",
        human="Must have either extensions or value[x], not both",
        key="ext-1",
        severity="error",
    )

FHIR_url_fixed_value_constraint(value) classmethod

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@field_validator(*("url",), mode="after", check_fields=None)
@classmethod
def FHIR_url_fixed_value_constraint(cls, value):
    return validate_FHIR_element_fixed_value(
        cls,
        value,
        constant="http://onconova.github.io/fhir/StructureDefinition/onconova-ext-therapy-line-progression-free-survival",
    )

extension_slicing_cardinality_validator(value) classmethod

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@field_validator(*("extension",), mode="after", check_fields=None)
@classmethod
def extension_slicing_cardinality_validator(cls, value):
    return validate_slicing_cardinalities(
        cls,
        value,
        field_name="extension",
    )

value_type_choice_validator()

Source code in onconova/interoperability/fhir/models/TherapyLine.py
@model_validator(mode="after")
def value_type_choice_validator(self):
    return validate_type_choice_element(
        self,
        field_types=["Duration"],
        field_name_base="value",
        required=False,
    )
runner