procedure_end_datetime
SUS Outpatient Procedure Occurrence
Source columns AppointmentDate
, AppointmentTime
. Combines a date with a time of day.
-
AppointmentDate
Appointment Date. APPOINTMENT DATE -
AppointmentTime
Appointment Time. APPOINTMENT TIME
select
distinct
op.GeneratedRecordIdentifier,
op.NHSNumber,
op.AppointmentDate,
op.AppointmentTime,
p.ProcedureOPCS as PrimaryProcedure
from omop_staging.sus_OP op
inner join omop_staging.sus_OP_OPCSProcedure p
on op.MessageId = p.MessageId
where NHSNumber is not null
Comment or raise an issue for this mapping.
SUS APC Procedure Occurrence
Source column PrimaryProcedureDate
. Converts text to dates.
PrimaryProcedureDate
Procedure Date. PROCEDURE DATE
select
distinct
apc.GeneratedRecordIdentifier,
apc.NHSNumber,
p.ProcedureDateOPCS as PrimaryProcedureDate,
p.ProcedureOPCS as PrimaryProcedure
from omop_staging.sus_APC apc
inner join omop_staging.sus_OPCSProcedure p
on apc.MessageId = p.MessageId
where NHSNumber is not null
Comment or raise an issue for this mapping.
SUS AE Procedure Occurrence
Source column PrimaryProcedureDate
. Converts text to dates.
PrimaryProcedureDate
Procedure Date. PROCEDURE DATE
select
distinct
ae.GeneratedRecordIdentifier,
ae.NHSNumber,
ae.CDSActivityDate as PrimaryProcedureDate,
p.AccidentAndEmergencyTreatment as PrimaryProcedure
from omop_staging.sus_AE ae
inner join omop_staging.sus_AE_treatment p
on AE.MessageId = p.MessageId
where NHSNumber is not null
Comment or raise an issue for this mapping.
CDS Procedure Occurrence
Source column PrimaryProcedureDate
. Converts text to dates.
PrimaryProcedureDate
Procedure Date. PROCEDURE DATE
select
distinct
l1.RecordConnectionIdentifier,
l1.NHSNumber,
p.PrimaryProcedureDate,
p.PrimaryProcedure
from omop_staging.cds_line01 l1
inner join omop_staging.cds_procedure p
on l1.MessageId = p.MessageId
where l1.NHSNumber is not null;