Phase 2: Center Dose Database Query

Back to Database Queries

Refer to the Center Dose user guide for background information.

         
        SELECT
          "institution"."name" AS "Institution",         -- anonymized name of institution
          "machine"."id" AS "Machine",                   -- anonymized name of machine
          "machineType"."model",                         -- type of machine
          "multileafCollimator"."model" AS "Collimator", -- HD or Millenium
          "output"."dataDate",                           -- time and date that data was collected
       -- "output"."analysisDate",                       -- time and date that data was analyzed
          "centerDose"."beamName",                       -- name of beam in RTPLAN
          "centerDose"."dose"                            -- average dose of pixels in center of image in CU
        FROM
          public."centerDose",
          public."institution",
          public."machine",
          public."machineType",
          public."multileafCollimator",
          public."output"
        WHERE
              ("centerDose"."outputPK" = "output"."outputPK")
          AND ("output"."machinePK" = "machine"."machinePK")
          AND ("machine"."institutionPK" = "institution"."institutionPK")
          AND ("machine"."machineTypePK" = "machineType"."machineTypePK")
          AND ("machine"."multileafCollimatorPK" = "multileafCollimator"."multileafCollimatorPK")
        ORDER BY
          "institution"."name",
          "machine"."id",
          "output"."dataDate",
          "centerDose"."beamName"
        ASC LIMIT 10;