observation_source_value
Sus CCMDS High Cost Drugs
-
Value copied from
ObservationSourceValue -
ObservationSourceValueHigh cost drugs. HIGH COST DRUGS (OPCS)
select distinct
apc.NHSNumber,
apc.HospitalProviderSpellNumber,
cc.CriticalCareStartDate as ObservationDate,
coalesce(cc.CriticalCareStartTime, '00:00:00') as ObservationDateTime,
d.CriticalCareHighCostDrugs as ObservationSourceValue
from omop_staging.sus_CCMDS_CriticalCareHighCostDrugs d
inner join omop_staging.sus_CCMDS cc on d.MessageId = cc.MessageId
inner join omop_staging.sus_APC apc on cc.GeneratedRecordID = apc.GeneratedRecordIdentifier
where apc.NHSNumber is not null
Comment or raise an issue for this mapping.
SACT Clinical Trial
-
Value copied from
Source_value -
Source_valueSource value for the Systemic Anti-Cancer Therapy Data Set, CLINICAL TRIAL INDICATOR identifies if a PATIENT is currently in an active Systemic Anti-Cancer Therapy CLINICAL TRIAL CLINICAL TRIAL INDICATOR
select
distinct
replace(NHS_Number, ' ', '') as NHSNumber,
Clinical_Trial,
Case
When Clinical_Trial = 1 then concat(Clinical_Trial, ' - PATIENT is taking part in a CLINICAL TRIAL')
else '' end as Source_Value,
Administration_Date
from omop_staging.sact_staging
where Clinical_Trial = '1'
Comment or raise an issue for this mapping.
Oxford Lab General Comment Observation
-
Value copied from
EVENT -
EVENTLab test event EVENT
select
NHS_NUMBER,
EVENT,
EVENT_START_DT_TM,
RESULT_VALUE
from ##duckdb_source##
where lower(EVENT) like '%comment%'