Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Running

Install sql_runner -https://bitbucket.renalregistry.nhs.uk/projects/RR/repos/sql_runner/browse

Run:

python scripts\sql_run.py batch jobs\regular\3C Q:\Output

then run:

Do not do the following step at the moment. We need a method to restrict the following query to just the 3C patients.


python scripts\sql_run.py --connection-string "postgresql+psycopg2://ukrdc:XXXXXXXXXX@localhost:6200/UKRDC3" batch jobs\regular\3C_UKRDC Q:\Ouput

(with the actual password subtituted above)

Definition

See DSA71 ( R:\0 Information Governance\Data sharing agreements (DSAs)\DSAs\Current DSAs\DSA71 Haynes_3C_Oxford )

All the patient data extracts are restricted to those patients in the 3C Study Identifier Table.

"biochem"

This looks in the QUARTERLY_TREATMENT (QUA) & MONTHLY_TREATMENT (QBL) blocks for:

  • Creatinine
  • Tacrolimus
  • Sirolimus

"latest_treatment"

This returns the latest TREATMENT (TXT) record for the patient.

"modality_after_transplant"

This looks for the NHS B&T Transplant records for each of the patients. A patient may have more than one.

For each of these records it uses the Failure Date (if supplied) or the Transplant Date and looks for the closest TREATMENT entry to start after that Date.

"Transfer In" Transplant Type codes are excluded as these are common when a patient returns to their own unit, as are codes we have classified as type "X" - these would typically be codes that record something other than a treatment such as "Graft Functioning".

"code_desc"

This contains the description of all the modality codes as well as how we classify them to help explain the logic used.


Sending

E-mail to richardhaynes@nhs.net




  • No labels