RecordConnectionIdentifier
SUS Inpatient Condition Occurrence
-
Value copied from
GeneratedRecordIdentifier
-
GeneratedRecordIdentifier
CDS specific identifier that binds multiple CDS messages together. CDS RECORD IDENTIFIER
select
distinct
d.DiagnosisICD,
apc.GeneratedRecordIdentifier,
apc.NHSNumber,
apc.CDSActivityDate
from omop_staging.sus_ICDDiagnosis d
inner join omop_staging.sus_APC apc
on d.MessageId = apc.MessageId
where apc.NHSNumber is not null
Comment or raise an issue for this mapping.
CDS Condition Occurrence
-
Value copied from
RecordConnectionIdentifier
-
RecordConnectionIdentifier
CDS specific identifier that binds multiple CDS messages together. CDS RECORD IDENTIFIER
select
distinct
d.DiagnosisCode,
line01.RecordConnectionIdentifier,
line01.NHSNumber,
line01.CDSActivityDate
from omop_staging.cds_diagnosis d
inner join omop_staging.cds_line01 line01
on d.MessageId = line01.MessageId
where line01.NHSNumber is not null;