Models

class remapp.models.AccumCassetteBsdProjRadiogDose(*args, **kwargs)

Accumulated Cassette-based Projection Radiography Dose TID 10006

From DICOM Part 16 Correction Proposal CP-1077:

This template provides information on Projection Radiography dose values accumulated on Cassette- based systems over one or more irradiation events (typically a study or a performed procedure step) from the same equipment.

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.AccumIntegratedProjRadiogDose(*args, **kwargs)

Accumulated Integrated Projection Radiography Dose TID 10007

From DICOM Part 16 Correction Proposal CP-1077:

This template provides information on Projection Radiography dose values accumulated on Integrated systems over one or more irradiation events (typically a study or a performed procedure step) from the same equipment.

exception DoesNotExist
exception MultipleObjectsReturned
convert_gym2_to_cgycm2()

Converts Gy.m2 to cGy.cm2 for display in web interface

total_dap_delta_gym2_to_cgycm2()

Converts total DAP over delta days from Gy.m2 to cGy.cm2 for display in web interface

class remapp.models.AccumMammographyXRayDose(*args, **kwargs)

Accumulated Mammography X-Ray Dose TID 10005

From DICOM Part 16:

This modality specific template provides detailed information on mammography X-Ray dose value accumulations over several irradiation events from the same equipment (typically a study or a performed procedure step).

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.AccumProjXRayDose(*args, **kwargs)

Accumulated Fluoroscopy and Acquisition Projection X-Ray Dose TID 10004

From DICOM Part 16:

This general template provides detailed information on projection X-Ray dose value accumulations over several irradiation events from the same equipment (typically a study or a performed procedure step).

exception DoesNotExist
exception MultipleObjectsReturned
acq_gym2_to_cgycm2()

Converts acquisition DAP total from Gy.m2 to cGy.cm2 for display in web interface

fluoro_gym2_to_cgycm2()

Converts fluoroscopy DAP total from Gy.m2 to cGy.cm2 for display in web interface

class remapp.models.AccumXRayDose(*args, **kwargs)

Accumulated X-Ray Dose TID 10002

From DICOM Part 16:

This general template provides detailed information on projection X-Ray dose value accumulations over several irradiation events from the same equipment (typically a study or a performed procedure step).

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.AdminTaskQuestions(*args, **kwargs)

Record if admin tasks have been dealt with

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.BackgroundTask(id, uuid, proc_id, task_type, info, error, completed_successfully, complete, started_at)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.BackgroundTaskMaximumRows(*args, **kwargs)

Table to store the maximum number of rows allowed in the BackgroundTask table

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.BillingCode(id, radiopharmaceutical_administration_event_data, billing_code)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.Calibration(*args, **kwargs)

Table to hold the calibration information

  • Container in TID 10002 Accumulated X-ray dose

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.ContextID(*args, **kwargs)

Table to hold all the context ID code values and code meanings.

  • Could be prefilled from the tables in DICOM 3.16, but is actually populated as the codes occur. This assumes they are used correctly.

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.CtAccumulatedDoseData(*args, **kwargs)

CT Accumulated Dose Data

From DICOM Part 16:

This general template provides detailed information on CT X-Ray dose value accumulations over several irradiation events from the same equipment and over the scope of accumulation specified for the report (typically a Study or a Performed Procedure Step).

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.CtDoseCheckDetails(*args, **kwargs)

CT Dose Check Details TID 10015

From DICOM Part 16:

This template records details related to the use of the NEMA Dose Check Standard (NEMA XR-25-2010).

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.CtIrradiationEventData(*args, **kwargs)

CT Irradiation Event Data TID 10013

From DICOM Part 16:

This template conveys the dose and equipment parameters of a single irradiation event.

Additional to the template:
  • date_time_started

  • series_description

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.CtRadiationDose(*args, **kwargs)

CT Radiation Dose TID 10011

From DICOM Part 16:

This template defines a container (the root) with subsidiary content items, each of which corresponds to a single CT X-Ray irradiation event entry. There is a defined recording observer (the system or person responsible for recording the log, generally the system). Accumulated values shall be kept for a whole Study or at least a part of a Study, if the Study is divided in the workflow of the examination, or a performed procedure step. Multiple CT Radiation Dose objects may be created for one Study.

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.CtReconstructionAlgorithm(*args, **kwargs)

Container in TID 10013 to hold CT reconstruction methods

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.CtXRaySourceParameters(*args, **kwargs)

Container in TID 10013 to hold CT x-ray source parameters

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.DeviceParticipant(*args, **kwargs)

Device Participant TID 1021

From DICOM Part 16:

This template describes a device participating in an activity as other than an observer or subject. E.g. for a dose report documenting an irradiating procedure, participants include the irradiating device.

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.DicomDeleteSettings(*args, **kwargs)

Table to store DICOM deletion settings

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.DicomQRRspImage(id, dicom_qr_rsp_series, query_id, sop_instance_uid, instance_number, sop_class_uid, deleted_flag, deleted_reason)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.DicomQRRspSeries(id, dicom_qr_rsp_study, query_id, series_instance_uid, series_number, series_time, modality, series_description, number_of_series_related_instances, station_name, sop_class_in_series, image_level_move, deleted_flag, deleted_reason)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.DicomQRRspStudy(id, dicom_query, query_id, study_instance_uid, modality, modalities_in_study, study_description, number_of_study_related_series, sop_classes_in_study, station_name, deleted_flag, deleted_reason)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.DicomQuery(*args, **kwargs)

Table to store DICOM query settings

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.DicomRemoteQR(*args, **kwargs)

Table to store DICOM remote QR settings

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.DicomStoreSCP(*args, **kwargs)

Table to store DICOM store settings

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.DoseRelatedDistanceMeasurements(*args, **kwargs)

Dose Related Distance Measurements Context ID 10008

Called from TID 10003c

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.DrugProductIdentifier(id, radiopharmaceutical_administration_event_data, drug_product_identifier)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.Exports(*args, **kwargs)

Table to hold the export status and filenames

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.Exposure(*args, **kwargs)

In TID 10003b. Code value 113736 (uA.s)

exception DoesNotExist
exception MultipleObjectsReturned
convert_uAs_to_mAs()

Converts uAs to mAs for display in web interface

class remapp.models.GeneralEquipmentModuleAttr(*args, **kwargs)

General Equipment Module C.7.5.1

From DICOM Part 3: Information Object Definitions Table C.7-8:

Specifies the Attributes that identify and describe the piece of equipment that produced a Series of Composite Instances.

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.GeneralStudyModuleAttr(*args, **kwargs)

General Study Module C.7.2.1

Specifies the Attributes that describe and identify the Study performed upon the Patient. From DICOM Part 3: Information Object Definitions Table C.7-3

Additional to the module definition:
  • performing_physician_name

  • operator_name

  • modality_type

  • procedure_code_value_and_meaning

  • requested_procedure_code_value_and_meaning

exception DoesNotExist
exception MultipleObjectsReturned
dap_a_cgycm2()

Converts DAP A to cGy.cm2 from Gy.m2 for display or export

dap_b_cgycm2()

Converts DAP B to cGy.cm2 from Gy.m2 for display or export

dap_delta_weeks_cgycm2()

Converts DAP delta weeks to cGy.cm2 from Gy.m2 for display

dap_total_cgycm2()

Converts DAP A+B to cGy.cm2 from Gy.m2 for display or export

class remapp.models.GlomerularFiltrationRate(id, radiopharmaceutical_administration_patient_characteristics, glomerular_filtration_rate, measurement_method, equivalent_meaning_of_concept_name)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.HighDoseMetricAlertRecipients(*args, **kwargs)

Table to store whether users should receive high dose fluoroscopy alerts

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.HighDoseMetricAlertSettings(*args, **kwargs)

Table to store high dose fluoroscopy alert settings

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.HomePageAdminSettings(*args, **kwargs)

Table to store home page settings

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.ImageViewModifier(*args, **kwargs)

Table to hold image view modifiers for the irradiation event x-ray data table

From DICOM Part 16 Annex D DICOM controlled Terminology Definitions
  • Code Value 111032

  • Code Meaning Image View Modifier

  • Code Definition Modifier for image view

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.IntravenousExtravasationSymptoms(id, radiopharmaceutical_administration_event_data, intravenous_extravasation_symptoms)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.IrradEventXRayData(*args, **kwargs)

Irradiation Event X-Ray Data TID 10003

From DICOM part 16:

This template conveys the dose and equipment parameters of a single irradiation event.

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.IrradEventXRayDetectorData(*args, **kwargs)

Irradiation Event X-Ray Detector Data TID 10003a

From DICOM Part 16 Correction Proposal CP-1077:

This template contains data which is expected to be available to the X-ray detector or plate reader component of the equipment.

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.IrradEventXRayMechanicalData(*args, **kwargs)

Irradiation Event X-Ray Mechanical Data TID 10003c

From DICOM Part 16 Correction Proposal CP-1077:

This template contains data which is expected to be available to the gantry or mechanical component of the equipment.

Additional to the template:
  • compression_force

  • magnification_factor

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.IrradEventXRaySourceData(*args, **kwargs)

Irradiation Event X-Ray Source Data TID 10003b

From DICOM Part 16 Correction Proposal CP-1077:

This template contains data which is expected to be available to the X-ray source component of the equipment.

Additional to the template:
  • ii_field_size

  • exposure_control_mode

  • grid information over and above grid type

exception DoesNotExist
exception MultipleObjectsReturned
convert_gy_to_mgy()

Converts Gy to mGy for display in web interface

class remapp.models.Kvp(*args, **kwargs)

In TID 10003b. Code value 113733 (kV)

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.LanguageofContentItemandDescendants(id, radiopharmaceutical_radiation_dose, language_of_contentitem_and_descendants, country_of_language)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.MergeOnDeviceObserverUIDSettings(*args, **kwargs)

Table to store setting(s) for autmoatic setting of Display Name and Modality type based on same Device observer UID

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.NotPatientIndicatorsID(*args, **kwargs)

Table to record strings that indicate a patient ID is really a test or QA ID

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.NotPatientIndicatorsName(*args, **kwargs)

Table to record strings that indicate a patient name is really a test or QA name

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.ObjectUIDsProcessed(*args, **kwargs)

Table to hold the SOP Instance UIDs of the objects that have been processed against this study to enable duplicate sorting.

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.ObserverContext(*args, **kwargs)

Observer Context TID 1002

From DICOM Part 16:

The observer (person or device) that created the Content Items to which this context applies.

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.OpenSkinSafeList(*args, **kwargs)

Table to store systems names and software versions that are suitable for OpenSkin

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.OrganDose(id, radiopharmaceutical_administration_event_data, finding_site, laterality, mass, measurement_method, organ_dose, reference_authority_code, reference_authority_text, type_of_detector_motion)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.PETSeries(id, radiopharmaceutical_radiation_dose, series_uid, series_datetime, number_of_rr_intervals, number_of_time_slots, number_of_time_slices, number_of_slices, reconstruction_method, coincidence_window_width, energy_window_lower_limit, energy_window_upper_limit, scan_progression_direction)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.PETSeriesCorrection(id, pet_series, corrected_image)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.PETSeriesType(id, pet_series, series_type)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.PKsForSummedRFDoseStudiesInDeltaWeeks(*args, **kwargs)

Table to hold foreign keys of all studies that fall within the delta weeks of each RF study.

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.PatientIDSettings(*args, **kwargs)

Table to store patient ID settings

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.PatientModuleAttr(*args, **kwargs)

Patient Module C.7.1.1

From DICOM Part 3: Information Object Definitions Table C.7-1:

Specifies the Attributes of the Patient that describe and identify the Patient who is the subject of a diagnostic Study. This Module contains Attributes of the patient that are needed for diagnostic interpretation of the Image and are common for all studies performed on the patient. It contains Attributes that are also included in the Patient Modules in Section C.2.

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.PatientState(id, radiopharmaceutical_administration_patient_characteristics, patient_state)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.PatientStudyModuleAttr(*args, **kwargs)

Patient Study Module C.7.2.2

From DICOM Part 3: Information Object Definitions Table C.7-4a:

Defines Attributes that provide information about the Patient at the time the Study started.

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.PersonParticipant(*args, **kwargs)

Person Participant TID 1020

From DICOM Part 16:

This template describes a person participating in an activity as other than an observer or subject. E.g. for a dose report documenting an irradiating procedure, participants include the person administering the irradiation and the person authorizing the irradiation.

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.ProjectionXRayRadiationDose(*args, **kwargs)

Projection X-Ray Radiation Dose template TID 10001

From DICOM Part 16:

This template defines a container (the root) with subsidiary content items, each of which represents a single projection X-Ray irradiation event entry or plane-specific dose accumulations. There is a defined recording observer (the system or person responsible for recording the log, generally the system). A Biplane irradiation event will be recorded as two individual events, one for each plane. Accumulated values will be kept separate for each plane.

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.PulseWidth(*args, **kwargs)

In TID 10003b. Code value 113793 (ms)

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.RadionuclideIdentifier(id, radiopharmaceutical_administration_event_data, radionuclide_identifier)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.RadiopharmaceuticalAdministrationEventData(id, radiopharmaceutical_radiation_dose, radiopharmaceutical_agent, radiopharmaceutical_agent_string, radionuclide, radionuclide_half_life, radiopharmaceutical_specific_activity, radiopharmaceutical_administration_event_uid, estimated_extravasation_activity, radiopharmaceutical_start_datetime, radiopharmaceutical_stop_datetime, administered_activity, effective_dose, radiopharmaceutical_volume, pre_administration_measured_activity, pre_activity_measurement_device, post_administration_measured_activity, post_activity_measurement_device, route_of_administration, site_of, laterality, brand_name, radiopharmaceutical_dispense_unit_identifier, prescription_identifier, comment)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.RadiopharmaceuticalAdministrationPatientCharacteristics(id, radiopharmaceutical_radiation_dose, subject_age, subject_sex, patient_height, patient_weight, body_surface_area, body_surface_area_formula, body_mass_index, equation, glucose, fasting_duration, hydration_volume, recent_physical_activity, serum_creatinine)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.RadiopharmaceuticalLotIdentifier(id, radiopharmaceutical_administration_event_data, radiopharmaceutical_lot_identifier)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.RadiopharmaceuticalRadiationDose(*args, **kwargs)

Radiopharmaceutical Radiation Dose TID 10021

From DICOM Part 16:

This Template defines a container (the root) with subsidiary Content Items, each of which corresponds to a single Radiopharmaceutical Administration Dose event entry. There is a defined recording observer (the system and/or person responsible for recording the assay of the radiopharmaceutical, and the person administered the radiopharmaceutical). Multiple Radiopharmaceutical Radiation Dose objects may be created for one study. Radiopharmaceutical Start DateTime in TID 10022 “Radiopharmaceutical Administration Event Data” will convey the order of administrations.

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.ReagentVialIdentifier(id, radiopharmaceutical_administration_event_data, reagent_vial_identifier)
exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.ScanningLength(*args, **kwargs)

Scanning Length TID 10014

From DICOM Part 16:

No description

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.SizeSpecificDoseEstimation(*args, **kwargs)

Container in TID 10013 to hold size specific dose estimation details

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.SizeUpload(*args, **kwargs)

Table to store patient size information

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.SkinDoseMapCalcSettings(*args, **kwargs)

Table to store skin dose map calculation settings

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.SkinDoseMapResults(*args, **kwargs)

Table to hold the results from OpenSkin

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.SourceOfCTDoseInformation(*args, **kwargs)

Source of CT Dose Information

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.StandardNameSettings(*args, **kwargs)

Table to store standard name mapping settings

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.StandardNames(*args, **kwargs)

Table to store standard study description, requested procedure, procedure or acquisition names

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.SummaryFields(*args, **kwargs)

Status and progress of populating the summary fields in GeneralStudyModuleAttr

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.UniqueEquipmentNames(*args, **kwargs)

Table to unique equipment name information

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.UpgradeStatus(*args, **kwargs)

Record upgrade status activity

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.UserProfile(*args, **kwargs)

Table to store user profile settings

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.WEDSeriesOrInstances(*args, **kwargs)

From TID 10013 Series or Instance used for Water Equivalent Diameter estimation

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.XrayFilters(*args, **kwargs)

Container in TID 10003b. Code value 113771

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.XrayGrid(*args, **kwargs)

Content ID 10017 X-Ray Grid

From DICOM Part 16

exception DoesNotExist
exception MultipleObjectsReturned
class remapp.models.XrayTubeCurrent(*args, **kwargs)

In TID 10003b. Code value 113734 (mA)

exception DoesNotExist
exception MultipleObjectsReturned
remapp.models.create_or_save_high_dose_metric_alert_recipient_setting(sender, instance, **kwargs)

Function to create or save fluoroscopy high dose alert recipient settings

remapp.models.limit_background_task_table_rows(sender, instance, **kwargs)

Method to limit the number of rows in the BackgroundTask table. This method is triggered by a post_save signal associated with the BackgroundTask table.