Skip to content

Commit 29b63fa

Browse files
committed
Adding Cerner Documentation and Updated CDM_BUILDER code.
1 parent 6802c15 commit 29b63fa

File tree

634 files changed

+15897
-11615
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

634 files changed

+15897
-11615
lines changed

bin/AWSSDK.Core.dll

8 KB
Binary file not shown.

bin/AWSSDK.EC2.dll

169 KB
Binary file not shown.

bin/AWSSDK.S3.dll

26.5 KB
Binary file not shown.

bin/CPRDV5/Batch.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ case when a.crd > b.uts then a.crd
1919
else '23-DEC-2099' end
2020
as observation_period_end_date
2121
from {sc}.PATIENT a
22-
left outer join {sc}.hes_patient c on c.patid=a.patid
2322
join {sc}.practice b on a.pracid = b.pracid
2423
where accept = 1 and yob + 1800 > 1899
2524
)

bin/CPRDV5/CDMDefinitions/PROVIDER.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
<Query>
14-
SELECT distinct PROVIDER_ID, SPECIALTY_SOURCE_VALUE, PROVIDER_SOURCE_VALUE FROM {sc}.PROVIDER
14+
SELECT distinct PROVIDER_ID, SPECIALTY_SOURCE_VALUE, NULL AS CARE_SITE_ID, PROVIDER_SOURCE_VALUE FROM {sc}.PROVIDER
1515
</Query>
1616
<Providers>
1717
<ProviderDefinition>

bin/CPRDV5/CdmSource.sql

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ INSERT INTO {sc}.CDM_SOURCE
1414
,VOCABULARY_VERSION)
1515
VALUES
1616
(
17-
'CPRD',
17+
'Clinical Practice Research Datalink (CPRD)',
1818
'CPRD',
1919
'Janssen R&D',
20-
'The CPRD database consists of data collected from UK primary care for all ages. This include conditions, observations, measurements, procedures that the general practitioner is made aware of in additional to any prescriptions made by the general practitioner. The data are not recorded for the purpose of research. Studies using the 2011 CPRD data have shown the CPRD population age/gender generally follow the same trend seen in the 2011 UK census [1] and another study has shown that ethnicity is generally representative of the UK population [2]. However, there may be issues with geography representation within the database [3]. In 2004 and incentive known as the Quality and Outcome framework was introduced to encourage GPs to record certain data and this can be seen in the data with large jumps in certain concept recording frequency after 2004. In addition to primary care, there are also linked secondary care records for a small number of people. Some validation checks are performed by the data provider.
21-
[1] Herrett, Emily, et al. "Data resource profile: clinical practice research datalink (CPRD)." International journal of epidemiology 44.3 (2015): 827-836.
22-
[2] Mathur, Rohini, et al. "Completeness and usability of ethnicity data in UK-based primary care and hospital databases." Journal of public health 36.4 (2014): 684-692.
23-
[3] Campbell J, Dedman DJ, Eaton SC, Gallagher AM, Williams TJ. Is the GPRD GOLD population comparable to the UK population? Pharmacoepidemiol Drug Saf 2013;22(Suppl 1):280.
24-
',
25-
'',
20+
'The Clinical Practice Research Datalink (CPRD) is a governmental, not-for-profit research service, jointly funded by the NHS National Institute for Health Research (NIHR) and the Medicines and Healthcare products Regulatory Agency (MHRA), a part of the Department of Health, United Kingdom (UK). CPRD consists of data collected from UK primary care for all ages. This includes conditions, observations, measurements, and procedures that the general practitioner is made aware of in additional to any prescriptions as prescribed by the general practitioner. In addition to primary care, there are also linked secondary care records for a small number of people.
21+
22+
The major data elements contained within this database are outpatient prescriptions given by the general practitioner (coded with Multilex codes) and outpatient clinical, referral, immunization or test events that the general practitioner knows about (coded in Read or ICD10 or LOINC codes). The database also contains the patients’ year of births and any date of deaths.
23+
24+
[For further information link to RWE site for CPRD.](https://catalog.rwe.jnj.com/index#jnjsearches?dataSetUri=%2Fdataset%2Fe3d6a6b5-a712-456f-9418-31b9c4f4c4fb.xml)',
25+
'https://catalog.rwe.jnj.com/index#jnjsearches?dataSetUri=%2Fdataset%2Fe3d6a6b5-a712-456f-9418-31b9c4f4c4fb.xml',
2626
'http://www.ohdsi.org/web/wiki/doku.php?id=documentation:example_etls',
2727
'{0}',
2828
'{3}',
29-
'V5.0',
29+
'V5.2.0',
3030
'{1}'
3131
);
3232

bin/CPRDV5/CohortDefinition.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
,[DEFINITION_TYPE_CONCEPT_ID]
66
,[COHORT_DEFINITION_SYNTAX]
77
,[SUBJECT_CONCEPT_ID]
8-
,[COHORT_INSTANTIATION_DATE])
8+
,[COHORT_INITIATION_DATE])
99
VALUES
1010
(224
1111
,'HES Patients'

bin/CPRDV5/Definitions/Additional.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
case when a.[enttype] = 372 then 1 else 0 end as is372
218218
FROM a
219219
JOIN {sc}.Clinical b on a.adid = b.adid and RIGHT(a.patid,3) = RIGHT(b.patid,3)
220-
LEFT JOIN {sc}.[Lookup] c on c.lookup_type_id = (SELECT [lookup_type_id] FROM [LookupType] WHERE name = 'SUM') and a.sm_units = c.code
220+
LEFT JOIN {sc}.[Lookup] c on c.lookup_type_id = (SELECT [lookup_type_id] FROM {sc}.[LookupType] WHERE name = 'SUM') and a.sm_units = c.code
221221
where b.eventdate is not null and a.value_as_string != 'Data Not Entered' and a.value_as_string is not null
222222
and a.value_as_string != ' '
223223
order by a.patid
@@ -255,7 +255,7 @@
255255
</Mapper>
256256
</ConceptIdMappers>
257257
<Fields>
258-
<Field key="units_source_value" defaultTypeId="0"/>
258+
<Field key="units_source_value" defaultTypeId="0" />
259259
</Fields>
260260
</Concept>
261261
</Concepts>
@@ -323,7 +323,7 @@
323323
</Mapper>
324324
</ConceptIdMappers>
325325
<Fields>
326-
<Field key="units_source_value" defaultTypeId="0"/>
326+
<Field key="units_source_value" defaultTypeId="0" />
327327
</Fields>
328328
</Concept>
329329
</Concepts>

bin/CPRDV5/Definitions/L_PROVIDER.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
cast(ISNULL(role, 0) as varchar) as SPECIALTY_SOURCE_VALUE,
88
cast(ISNULL(role, 0) as varchar) as SPECIALTY_SOURCE_KEY,
99
ISNULL(gender, 0) as gender
10-
from dbo.Staff
10+
from {sc}.Staff
1111
union
1212
(select record_count+5000000000 as PROVIDER_ID,
1313
CARE_SITE_ID,
@@ -35,7 +35,7 @@
3535
(select *, row_number() over (partition by pconsult order by count_spec desc) as prov_count
3636
from
3737
(select pconsult, tretspef, count(patid) as count_spec
38-
from dbo.HES_episodes a
38+
from {sc}.HES_episodes a
3939
where pconsult != '&amp;'
4040
group by pconsult, tretspef) a) b
4141
where prov_count=1

bin/CPRDV5/Definitions/Test.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333
</Mapper>
334334
</ConceptIdMappers>
335335
<Fields>
336-
<Field key="7df_units_source_value" defaultTypeId="0"/>
336+
<Field key="7df_units_source_value" defaultTypeId="0" />
337337
</Fields>
338338
</Concept>
339339
</Concepts>
@@ -515,7 +515,7 @@
515515
</Mapper>
516516
</ConceptIdMappers>
517517
<Fields>
518-
<Field key="7df_units_source_value" defaultTypeId="0"/>
518+
<Field key="7df_units_source_value" defaultTypeId="0" />
519519
</Fields>
520520
</Concept>
521521
</Concepts>

0 commit comments

Comments
 (0)