# Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/DiagnosticReport). # 2024, SMART Health IT. from . import domainresource class DiagnosticReport(domainresource.DomainResource): """ A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports. The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. """ resource_type = "DiagnosticReport" def __init__(self, jsondict=None, strict=True): """ Initialize all valid properties. :raises: FHIRValidationError on validation errors, unless strict is False :param dict jsondict: A JSON dictionary to use for initialization :param bool strict: If True (the default), invalid variables will raise a TypeError """ self.basedOn = None """ What was requested. List of `FHIRReference` items (represented as `dict` in JSON). """ self.category = None """ Service category. List of `CodeableConcept` items (represented as `dict` in JSON). """ self.code = None """ Name/Code for this diagnostic report. Type `CodeableConcept` (represented as `dict` in JSON). """ self.conclusion = None """ Clinical conclusion (interpretation) of test results. Type `str`. """ self.conclusionCode = None """ Codes for the clinical conclusion of test results. List of `CodeableConcept` items (represented as `dict` in JSON). """ self.effectiveDateTime = None """ Clinically relevant time/time-period for report. Type `FHIRDateTime` (represented as `str` in JSON). """ self.effectivePeriod = None """ Clinically relevant time/time-period for report. Type `Period` (represented as `dict` in JSON). """ self.encounter = None """ Health care event when test ordered. Type `FHIRReference` (represented as `dict` in JSON). """ self.identifier = None """ Business identifier for report. List of `Identifier` items (represented as `dict` in JSON). """ self.imagingStudy = None """ Reference to full details of imaging associated with the diagnostic report. List of `FHIRReference` items (represented as `dict` in JSON). """ self.issued = None """ DateTime this version was made. Type `FHIRInstant` (represented as `str` in JSON). """ self.media = None """ Key images associated with this report. List of `DiagnosticReportMedia` items (represented as `dict` in JSON). """ self.performer = None """ Responsible Diagnostic Service. List of `FHIRReference` items (represented as `dict` in JSON). """ self.presentedForm = None """ Entire report as issued. List of `Attachment` items (represented as `dict` in JSON). """ self.result = None """ Observations. List of `FHIRReference` items (represented as `dict` in JSON). """ self.resultsInterpreter = None """ Primary result interpreter. List of `FHIRReference` items (represented as `dict` in JSON). """ self.specimen = None """ Specimens this report is based on. List of `FHIRReference` items (represented as `dict` in JSON). """ self.status = None """ registered | partial | preliminary | final +. Type `str`. """ self.subject = None """ The subject of the report - usually, but not always, the patient. Type `FHIRReference` (represented as `dict` in JSON). """ super(DiagnosticReport, self).__init__(jsondict=jsondict, strict=strict) def elementProperties(self): js = super(DiagnosticReport, self).elementProperties() js.extend([ ("basedOn", "basedOn", fhirreference.FHIRReference, True, None, False), ("category", "category", codeableconcept.CodeableConcept, True, None, False), ("code", "code", codeableconcept.CodeableConcept, False, None, True), ("conclusion", "conclusion", str, False, None, False), ("conclusionCode", "conclusionCode", codeableconcept.CodeableConcept, True, None, False), ("effectiveDateTime", "effectiveDateTime", fhirdatetime.FHIRDateTime, False, "effective", False), ("effectivePeriod", "effectivePeriod", period.Period, False, "effective", False), ("encounter", "encounter", fhirreference.FHIRReference, False, None, False), ("identifier", "identifier", identifier.Identifier, True, None, False), ("imagingStudy", "imagingStudy", fhirreference.FHIRReference, True, None, False), ("issued", "issued", fhirinstant.FHIRInstant, False, None, False), ("media", "media", DiagnosticReportMedia, True, None, False), ("performer", "performer", fhirreference.FHIRReference, True, None, False), ("presentedForm", "presentedForm", attachment.Attachment, True, None, False), ("result", "result", fhirreference.FHIRReference, True, None, False), ("resultsInterpreter", "resultsInterpreter", fhirreference.FHIRReference, True, None, False), ("specimen", "specimen", fhirreference.FHIRReference, True, None, False), ("status", "status", str, False, None, True), ("subject", "subject", fhirreference.FHIRReference, False, None, False), ]) return js from . import backboneelement class DiagnosticReportMedia(backboneelement.BackboneElement): """ Key images associated with this report. A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest). """ resource_type = "DiagnosticReportMedia" def __init__(self, jsondict=None, strict=True): """ Initialize all valid properties. :raises: FHIRValidationError on validation errors, unless strict is False :param dict jsondict: A JSON dictionary to use for initialization :param bool strict: If True (the default), invalid variables will raise a TypeError """ self.comment = None """ Comment about the image (e.g. explanation). Type `str`. """ self.link = None """ Reference to the image source. Type `FHIRReference` (represented as `dict` in JSON). """ super(DiagnosticReportMedia, self).__init__(jsondict=jsondict, strict=strict) def elementProperties(self): js = super(DiagnosticReportMedia, self).elementProperties() js.extend([ ("comment", "comment", str, False, None, False), ("link", "link", fhirreference.FHIRReference, False, None, True), ]) return js from . import attachment from . import codeableconcept from . import fhirdatetime from . import fhirinstant from . import fhirreference from . import identifier from . import period