observation_source_value
Sus CCMDS High Cost Drugs
-
Value copied from
ObservationSourceValue
-
ObservationSourceValue
High 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