RecordConnectionIdentifier
Cds Total Previous Pregnancies Observation
-
Value copied from
RecordConnectionIdentifier
-
RecordConnectionIdentifier
CDS specific identifier that binds multiple CDS messages together. CDS RECORD IDENTIFIER
select
l1.NHSNumber,
l1.RecordConnectionIdentifier,
l5.HospitalProviderSpellNumber,
max(l1.CDSActivityDate) as CDSActivityDate,
l1.TotalPreviousPregnancies
from omop_staging.cds_line01 l1
left outer join omop_staging.cds_line05 l5
on l1.MessageId = l5.MessageId
where l1.TotalPreviousPregnancies is not null
and l1.NHSNumber is not null
and (l1.CdsRecordType = '140' or l1.CdsRecordType = '120')
group by
l1.NHSNumber,
l1.RecordConnectionIdentifier,
l5.HospitalProviderSpellNumber,
l1.CDSActivityDate,
l1.TotalPreviousPregnancies;
Comment or raise an issue for this mapping.
Cds Source Of Referral For Outpatients Observation
-
Value copied from
RecordConnectionIdentifier
-
RecordConnectionIdentifier
CDS specific identifier that binds multiple CDS messages together. CDS RECORD IDENTIFIER
select
l1.NHSNumber,
l1.RecordConnectionIdentifier,
l5.HospitalProviderSpellNumber,
coalesce(max(l9.ReferralRequestReceivedDate), max(l1.CDSActivityDate)) as observation_date,
l9.SourceofReferralforOutpatients as SourceOfReferralForOutpatients
from [omop_staging].[cds_line01] l1
inner join [omop_staging].[cds_line09] l9
on l1.MessageId = l9.MessageId
left outer join omop_staging.cds_line05 l5
on l1.MessageId = l5.MessageId
where l9.SourceofReferralforOutpatients is not null
and l1.NHSNumber is not null
group by
l1.NHSNumber,
l9.ReferralRequestReceivedDate,
l9.SourceofReferralforOutpatients,
l1.RecordConnectionIdentifier,
l5.HospitalProviderSpellNumber
Comment or raise an issue for this mapping.
Cds Person Weight Observation
-
Value copied from
RecordConnectionIdentifier
-
RecordConnectionIdentifier
CDS specific identifier that binds multiple CDS messages together. CDS RECORD IDENTIFIER
select
l1.NHSNumber,
l1.RecordConnectionIdentifier,
l5.HospitalProviderSpellNumber,
coalesce(max(l7.ActivityDateCriticalCare), MAX(l1.CDSActivityDate)) as observation_date,
l7.PersonWeight
from [omop_staging].[cds_line01] l1
inner join [omop_staging].[cds_line07] l7
on l1.MessageId = l7.MessageId
left outer join omop_staging.cds_line05 l5
on l1.MessageId = l5.MessageId
where l7.PersonWeight is not null
and l1.NHSNumber is not null
group by
l1.NHSNumber,
l1.RecordConnectionIdentifier,
l5.HospitalProviderSpellNumber,
l7.ActivityDateCriticalCare,
l7.PersonWeight;
Comment or raise an issue for this mapping.
Cds NumberofBabies Observation
-
Value copied from
RecordConnectionIdentifier
-
RecordConnectionIdentifier
CDS specific identifier that binds multiple CDS messages together. CDS RECORD IDENTIFIER
select
l1.NHSNumber,
l1.RecordConnectionIdentifier,
l5.HospitalProviderSpellNumber,
coalesce(max(l8.DeliveryDate), max(l1.CDSActivityDate)) as observation_date,
l8.NumberofBabies
from omop_staging.cds_line01 l1
inner join omop_staging.cds_line08 l8
on l1.MessageId = l8.MessageId
left outer join omop_staging.cds_line05 l5
on l1.MessageId = l5.MessageId
where
l8.NumberofBabies is not null
and l1.NHSNumber is not null
and (l1.CdsRecordType = '140' or l1.CdsRecordType = '120')
group by
l1.NHSNumber,
l1.RecordConnectionIdentifier,
l5.HospitalProviderSpellNumber,
l8.DeliveryDate,
l8.NumberofBabies;
Comment or raise an issue for this mapping.
Cds Gestation Length Labour Onset Observation
-
Value copied from
RecordConnectionIdentifier
-
RecordConnectionIdentifier
CDS specific identifier that binds multiple CDS messages together. CDS RECORD IDENTIFIER
select
l1.NHSNumber,
l1.RecordConnectionIdentifier,
l5.HospitalProviderSpellNumber,
coalesce(max(l8.DeliveryDate), MAX(l1.CDSActivityDate)) as observation_date,
l8.GestationLengthLabourOnset
from omop_staging.cds_line01 l1
inner join omop_staging.cds_line08 l8
on l1.MessageId = l8.MessageId
left outer join omop_staging.cds_line05 l5
on l1.MessageId = l5.MessageId
where l8.GestationLengthLabourOnset is not null
and l1.NHSNumber is not null
and (l1.CdsRecordType = '140' or l1.CdsRecordType = '120')
group by
l1.NHSNumber,
l1.RecordConnectionIdentifier,
l5.HospitalProviderSpellNumber,
l8.DeliveryDate,
l8.GestationLengthLabourOnset;
Comment or raise an issue for this mapping.
Cds Carer Support Indicator Observation
-
Value copied from
RecordConnectionIdentifier
-
RecordConnectionIdentifier
CDS specific identifier that binds multiple CDS messages together. CDS RECORD IDENTIFIER
select
l1.NHSNumber,
max(l1.CDSActivityDate) as CDSActivityDate,
l1.CarerSupportIndicator,
l5.HospitalProviderSpellNumber,
l1.RecordConnectionIdentifier
from omop_staging.cds_line01 l1
left outer join omop_staging.cds_line05 l5
on l1.MessageId = l5.MessageId
where NHSNumber is not null
and CarerSupportIndicator is not null
group by
l1.NHSNumber,
l1.CarerSupportIndicator,
l5.HospitalProviderSpellNumber,
l1.RecordConnectionIdentifier;
Comment or raise an issue for this mapping.
Cds Birth Weight Observation
-
Value copied from
RecordConnectionIdentifier
-
RecordConnectionIdentifier
CDS specific identifier that binds multiple CDS messages together. CDS RECORD IDENTIFIER
select
l1.NHSNumber,
l1.RecordConnectionIdentifier,
l5.HospitalProviderSpellNumber,
coalesce(max(l8.DeliveryDate), MAX(l1.CDSActivityDate)) as observation_date,
l1.BirthWeight
from omop_staging.cds_line01 l1
inner join omop_staging.cds_line08 l8
on l1.MessageId = l8.MessageId
left outer join omop_staging.cds_line05 l5
on l1.MessageId = l5.MessageId
where l1.BirthWeight is not null
and l1.NHSNumber is not null
and (l1.CdsRecordType = '140' or l1.CdsRecordType = '120')
group by
l1.NHSNumber,
l1.RecordConnectionIdentifier,
l5.HospitalProviderSpellNumber,
l8.DeliveryDate,
l1.BirthWeight;
Comment or raise an issue for this mapping.
Cds Anaesthetic Given Post Labour Delivery Observation
-
Value copied from
RecordConnectionIdentifier
-
RecordConnectionIdentifier
CDS specific identifier that binds multiple CDS messages together. CDS RECORD IDENTIFIER
select
l1.NHSNumber,
l1.RecordConnectionIdentifier,
l5.HospitalProviderSpellNumber,
coalesce(max(l8.DeliveryDate), max(l1.CDSActivityDate)) as observation_date,
l8.AnaestheticGivenPostLabourDelivery
from omop_staging.cds_line01 l1
inner join omop_staging.cds_line08 l8
on l1.MessageId = l8.MessageId
left outer join omop_staging.cds_line05 l5
on l1.MessageId = l5.MessageId
where l8.AnaestheticGivenPostLabourDelivery is not null
and l1.NHSNumber is not null
and (l1.CdsRecordType = '140' or l1.CdsRecordType = '120')
group by
l1.NHSNumber,
l1.RecordConnectionIdentifier,
l5.HospitalProviderSpellNumber,
l8.DeliveryDate,
l8.AnaestheticGivenPostLabourDelivery
Comment or raise an issue for this mapping.
Cds Anaesthetic During Labour Delivery Observation
-
Value copied from
RecordConnectionIdentifier
-
RecordConnectionIdentifier
CDS specific identifier that binds multiple CDS messages together. CDS RECORD IDENTIFIER
select
l1.NHSNumber,
l1.RecordConnectionIdentifier,
coalesce(max(l8.DeliveryDate), max(l1.CDSActivityDate)) as observation_date,
l8.AnaestheticDuringLabourDelivery
from [omop_staging].[cds_line01] l1
inner join [omop_staging].[cds_line08] l8
on l1.MessageId = l8.MessageId
where l8.AnaestheticDuringLabourDelivery is not null
and l1.NHSNumber is not null
and (l1.CdsRecordType = '140' or l1.CdsRecordType = '120')
group by
l1.NHSNumber,
l1.RecordConnectionIdentifier,
l8.DeliveryDate,
l8.AnaestheticDuringLabourDelivery