drug_exposure_start_datetime
SNOMED CT procedures mapped to single-day Drug Exposure from databricks_procedures.parquet.
Source column clinical_datetime. Converts text to dates.
clinical_datetimeClinical drug exposure start timestamp.
select
patient_identifier_value,
clinical_date,
clinical_datetime,
clinical_code,
trim(clinical_code) as concept_code
from ##duckdb_source##
where upper(trim(clinical_code_system)) = 'SNOMED CT'
order by all
Comment or raise an issue for this mapping.
OPCS4 procedures mapped to single-day Drug Exposure from databricks_procedures.parquet.
Source column clinical_datetime. Converts text to dates.
clinical_datetimeClinical drug exposure start timestamp.
select
patient_identifier_value,
clinical_date,
clinical_datetime,
clinical_code,
replace(upper(trim(clinical_code)), '.', '') as concept_code
from ##duckdb_source##
where upper(trim(clinical_code_system)) = 'OPCS4'
order by all
Comment or raise an issue for this mapping.
Oxford Prescribing Drug Exposure
Source column beg_dt_tm. Converts text to dates.
beg_dt_tmThe begin date of the Drug that was initially dispensed to the PATIENT.
select
patient_identifier_Value,
beg_dt_tm,
end_dt_tm,
lower(replace(catalog, 'zzz', '')) as catalog,
lower(order_mnemonic) as order_mnemonic,
order_detail_display_line,
lower(rxroute) as rxroute,
strengthdoseunit,
strengthdose,
EVENT_ID
from ##duckdb_source##
where concept_identifier is null or
TRY_CAST(TRIM(concept_identifier) AS INTEGER) = 0
order by all
Comment or raise an issue for this mapping.
Oxford Prescribing Drug Exposure (with Snomed)
Source column beg_dt_tm. Converts text to dates.
beg_dt_tmThe begin date of the Drug that was initially dispensed to the PATIENT.
select
patient_identifier_Value,
beg_dt_tm,
end_dt_tm,
order_detail_display_line,
order_mnemonic,
lower(rxroute) as rxroute,
strengthdoseunit,
strengthdose,
concept_identifier,
EVENT_ID
from ##duckdb_source##
where concept_identifier is not null
order by all
Comment or raise an issue for this mapping.
Oxford GP Drug Exposure
Source column LastIssueDate. Converts text to dates.
LastIssueDateLast Issue Date
select
distinct
d.NHSNumber,
e.LastIssueDate,
e.SuppliedCode,
e.Quantity,
e.Units
from omop_staging.oxford_gp_medication e
inner join omop_staging.oxford_gp_demographic d
on e.PatientIdentifier = d.PatientIdentifier
order by
d.NHSNumber,
e.LastIssueDate,
e.SuppliedCode,
e.Quantity,
e.Units