Skip to content

Commit ab74f34

Browse files
Merge pull request #670 from OHDSI/olympians_week3
Olympians week3
2 parents 8fe01fa + 2835564 commit ab74f34

File tree

4 files changed

+40
-46
lines changed

4 files changed

+40
-46
lines changed

docs/cdm53.html

+16-19
Original file line numberDiff line numberDiff line change
@@ -4596,9 +4596,11 @@ <h3 class="tabset tabset-pills">procedure_occurrence</h3>
45964596
modifier_source_value
45974597
</td>
45984598
<td style="text-align:left;">
4599+
This field houses the verbatim value from the source data representing
4600+
the modifier code for the procedure that occurred.
45994601
</td>
46004602
<td style="text-align:left;">
4601-
The original modifier code from the source is stored here for reference.
4603+
The value stored here is mapped to a MODIFIER_CONCEPT_ID.
46024604
</td>
46034605
<td style="text-align:left;">
46044606
varchar(50)
@@ -5484,15 +5486,10 @@ <h3 class="tabset tabset-pills">measurement</h3>
54845486
are captured and mapped to standard concepts in the ‘Meas Value’ domain.
54855487
</td>
54865488
<td style="text-align:left;">
5487-
If the raw data provides categorial results as well as continuous
5488-
results for measurements, it is a valid ETL choice to preserve both
5489-
values. The continuous value should go in the VALUE_AS_NUMBER field and
5490-
the categorical value should be mapped to a standard concept in the
5491-
‘Meas Value’ domain and put in the VALUE_AS_CONCEPT_ID field. This is
5492-
also the destination for the ‘Maps to value’ relationship. If there’s no
5493-
categorial result in a source_data, set value_as_concept_id to NULL, if
5494-
there is a categorial result in a source_data but without mapping, set
5495-
value_as_concept_id to 0.
5489+
If there is no categorial result in the source data, set
5490+
VALUE_AS_CONCEPT_ID to NULL, if there is a categorial result in a source
5491+
data but without mapping, set VALUE_AS_CONCEPT_ID to 0, else map to a
5492+
CONCEPT_ID.
54965493
</td>
54975494
<td style="text-align:left;">
54985495
integer
@@ -5712,14 +5709,14 @@ <h3 class="tabset tabset-pills">measurement</h3>
57125709
measurement_source_value
57135710
</td>
57145711
<td style="text-align:left;">
5715-
This field houses the verbatim value from the source data representing
5716-
the Measurement that occurred. For example, this could be an ICD10 or
5717-
Read code.
5712+
This field contains the exact value from the source data that represents
5713+
the measurement that occurred.
57185714
</td>
57195715
<td style="text-align:left;">
5720-
This code is mapped to a Standard Measurement Concept in the
5721-
Standardized Vocabularies and the original code is stored here for
5722-
reference.
5716+
This value corresponds to a standardized CONCEPT_ID found in
5717+
MEASUREMENT_CONCEPT_ID and in the ‘Measurement’ domain within the
5718+
Standardized Vocabularies. The original code is retained here for
5719+
reference purposes.
57235720
</td>
57245721
<td style="text-align:left;">
57255722
varchar(50)
@@ -5753,9 +5750,9 @@ <h3 class="tabset tabset-pills">measurement</h3>
57535750
be consistent across the network.
57545751
</td>
57555752
<td style="text-align:left;">
5756-
If the MEASUREMENT_SOURCE_VALUE is coded in the source data using an
5757-
OMOP supported vocabulary put the concept id representing the source
5758-
value here.
5753+
If the MEASUREMENT_SOURCE_VALUE is coded in the source data using a
5754+
vocabulary supported by OMOP Standardized Vocabularies, insert the
5755+
CONCEPT_ID representing the source value here.
57595756
</td>
57605757
<td style="text-align:left;">
57615758
integer

docs/cdm54.html

+16-19
Original file line numberDiff line numberDiff line change
@@ -4792,9 +4792,11 @@ <h3 class="tabset tabset-pills">procedure_occurrence</h3>
47924792
modifier_source_value
47934793
</td>
47944794
<td style="text-align:left;">
4795+
This field houses the verbatim value from the source data representing
4796+
the modifier code for the procedure that occurred.
47954797
</td>
47964798
<td style="text-align:left;">
4797-
The original modifier code from the source is stored here for reference.
4799+
The value stored here is mapped to a MODIFIER_CONCEPT_ID.
47984800
</td>
47994801
<td style="text-align:left;">
48004802
varchar(50)
@@ -5818,15 +5820,10 @@ <h3 class="tabset tabset-pills">measurement</h3>
58185820
are captured and mapped to standard concepts in the ‘Meas Value’ domain.
58195821
</td>
58205822
<td style="text-align:left;">
5821-
If the raw data provides categorial results as well as continuous
5822-
results for measurements, it is a valid ETL choice to preserve both
5823-
values. The continuous value should go in the VALUE_AS_NUMBER field and
5824-
the categorical value should be mapped to a standard concept in the
5825-
‘Meas Value’ domain and put in the VALUE_AS_CONCEPT_ID field. This is
5826-
also the destination for the ‘Maps to value’ relationship. If there’s no
5827-
categorial result in a source_data, set value_as_concept_id to NULL, if
5828-
there is a categorial result in a source_data but without mapping, set
5829-
value_as_concept_id to 0.
5823+
If there is no categorial result in the source data, set
5824+
VALUE_AS_CONCEPT_ID to NULL, if there is a categorial result in a source
5825+
data but without mapping, set VALUE_AS_CONCEPT_ID to 0, else map to a
5826+
CONCEPT_ID.
58305827
</td>
58315828
<td style="text-align:left;">
58325829
integer
@@ -6046,14 +6043,14 @@ <h3 class="tabset tabset-pills">measurement</h3>
60466043
measurement_source_value
60476044
</td>
60486045
<td style="text-align:left;">
6049-
This field houses the verbatim value from the source data representing
6050-
the Measurement that occurred. For example, this could be an ICD10 or
6051-
Read code.
6046+
This field contains the exact value from the source data that represents
6047+
the measurement that occurred.
60526048
</td>
60536049
<td style="text-align:left;">
6054-
This code is mapped to a Standard Measurement Concept in the
6055-
Standardized Vocabularies and the original code is stored here for
6056-
reference.
6050+
This value corresponds to a standardized CONCEPT_ID found in
6051+
MEASUREMENT_CONCEPT_ID and in the ‘Measurement’ domain within the
6052+
Standardized Vocabularies. The original code is retained here for
6053+
reference purposes.
60576054
</td>
60586055
<td style="text-align:left;">
60596056
varchar(50)
@@ -6087,9 +6084,9 @@ <h3 class="tabset tabset-pills">measurement</h3>
60876084
be consistent across the network.
60886085
</td>
60896086
<td style="text-align:left;">
6090-
If the MEASUREMENT_SOURCE_VALUE is coded in the source data using an
6091-
OMOP supported vocabulary put the concept id representing the source
6092-
value here.
6087+
If the MEASUREMENT_SOURCE_VALUE is coded in the source data using a
6088+
vocabulary supported by OMOP Standardized Vocabularies, insert the
6089+
CONCEPT_ID representing the source value here.
60936090
</td>
60946091
<td style="text-align:left;">
60956092
integer

inst/csv/OMOP_CDMv5.3_Field_Level.csv

+4-4
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ procedure_occurrence,visit_occurrence_id,No,integer,The visit during which the p
124124
procedure_occurrence,visit_detail_id,No,integer,"The VISIT_DETAIL record during which the Procedure occurred. For example, if the Person was in the ICU at the time of the Procedure the VISIT_OCCURRENCE record would reflect the overall hospital stay and the VISIT_DETAIL record would reflect the ICU stay during the hospital visit.",Same rules apply as for the VISIT_OCCURRENCE_ID.,No,No,VISIT_DETAIL,VISIT_DETAIL_ID,NA,NA,NA
125125
procedure_occurrence,procedure_source_value,No,varchar(50),"This field houses the verbatim value from the source data representing the procedure that occurred. For example, this could be an CPT4 or OPCS4 code.",Use this value to look up the source concept id and then map the source concept id to a standard concept id.,No,No,NA,NA,NA,NA,NA
126126
procedure_occurrence,procedure_source_concept_id,No,integer,"This is the concept representing the procedure source value and may not necessarily be standard. This field is discouraged from use in analysis because it is not required to contain Standard Concepts that are used across the OHDSI community, and should only be used when Standard Concepts do not adequately represent the source detail for the Procedure necessary for a given analytic use case. Consider using PROCEDURE_CONCEPT_ID instead to enable standardized analytics that can be consistent across the network.",If the PROCEDURE_SOURCE_VALUE is coded in the source data using an OMOP supported vocabulary put the concept id representing the source value here.,No,No,CONCEPT,CONCEPT_ID,NA,NA,NA
127-
procedure_occurrence,modifier_source_value,No,varchar(50),NA,The original modifier code from the source is stored here for reference.,No,No,NA,NA,NA,NA,NA
127+
procedure_occurrence,modifier_source_value,No,varchar(50),This field houses the verbatim value from the source data representing the modifier code for the procedure that occurred.,The value stored here is mapped to a MODIFIER_CONCEPT_ID.,No,No,NA,NA,NA,NA,NA
128128
device_exposure,device_exposure_id,Yes,integer,The unique key given to records a person's exposure to a foreign physical object or instrument.,Each instance of an exposure to a foreign object or device present in the source data should be assigned this unique key.,Yes,No,NA,NA,NA,NA,NA
129129
device_exposure,person_id,Yes,integer,NA,NA,No,Yes,PERSON,PERSON_ID,NA,NA,NA
130130
device_exposure,device_concept_id,Yes,integer,"The DEVICE_CONCEPT_ID field is recommended for primary use in analyses, and must be used for network studies. This is the standard concept mapped from the source concept id which represents a foreign object or instrument the person was exposed to.",The CONCEPT_ID that the DEVICE_SOURCE_VALUE maps to.,No,Yes,CONCEPT,CONCEPT_ID,Device,NA,NA
@@ -149,15 +149,15 @@ measurement,measurement_time,No,varchar(10),NA,This is present for backwards com
149149
measurement,measurement_type_concept_id,Yes,integer,"This field can be used to determine the provenance of the Measurement record, as in whether the measurement was from an EHR system, insurance claim, registry, or other sources.","Choose the MEASUREMENT_TYPE_CONCEPT_ID that best represents the provenance of the record, for example whether it came from an EHR record or billing claim. [Accepted Concepts](https://athena.ohdsi.org/search-terms/terms?domain=Type+Concept&standardConcept=Standard&page=1&pageSize=15&query=).",No,Yes,CONCEPT,CONCEPT_ID,Type Concept,NA,NA
150150
measurement,operator_concept_id,No,integer,"The meaning of Concept [4172703](https://athena.ohdsi.org/search-terms/terms/4172703) for '=' is identical to omission of a OPERATOR_CONCEPT_ID value. Since the use of this field is rare, it's important when devising analyses to not to forget testing for the content of this field for values different from =.","Operators are <, <=, =, >=, > and these concepts belong to the 'Meas Value Operator' domain. [Accepted Concepts](https://athena.ohdsi.org/search-terms/terms?domain=Meas+Value+Operator&standardConcept=Standard&page=1&pageSize=15&query=). Leave it NULL if there's an exact numeric value given (instead of putting '=') or there's no numeric value at all.",No,Yes,CONCEPT,CONCEPT_ID,NA,NA,NA
151151
measurement,value_as_number,No,float,"This is the numerical value of the Result of the Measurement, if available. Note that measurements such as blood pressures will be split into their component parts i.e. one record for systolic, one record for diastolic.",[Convention for negative values](https://ohdsi.github.io/Themis/negative_value_as_number.html),No,No,NA,NA,NA,NA,NA
152-
measurement,value_as_concept_id,No,integer,If the raw data gives a categorial result for measurements those values are captured and mapped to standard concepts in the 'Meas Value' domain.,"If the raw data provides categorial results as well as continuous results for measurements, it is a valid ETL choice to preserve both values. The continuous value should go in the VALUE_AS_NUMBER field and the categorical value should be mapped to a standard concept in the 'Meas Value' domain and put in the VALUE_AS_CONCEPT_ID field. This is also the destination for the 'Maps to value' relationship. If there's no categorial result in a source_data, set value_as_concept_id to NULL, if there is a categorial result in a source_data but without mapping, set value_as_concept_id to 0.",No,Yes,CONCEPT,CONCEPT_ID,NA,NA,NA
152+
measurement,value_as_concept_id,No,integer,If the raw data gives a categorial result for measurements those values are captured and mapped to standard concepts in the 'Meas Value' domain.,"If there is no categorial result in the source data, set VALUE_AS_CONCEPT_ID to NULL, if there is a categorial result in a source data but without mapping, set VALUE_AS_CONCEPT_ID to 0, else map to a CONCEPT_ID.",No,Yes,CONCEPT,CONCEPT_ID,NA,NA,NA
153153
measurement,unit_concept_id,No,integer,"At present, there isn't a prescribed unit for individual measurements, such as Hemoglobin A1C, meaning it's not obligatory to express these measurements as a percentage. UNIT_SOURCE_VALUES should be linked to a Standard Concept within the Unit domain that most accurately reflects the unit provided in the source data.","If the source data does not include units, set UNIT_CONCEPT_ID to NULL. If units are provided but not mapped, set UNIT_CONCEPT_ID to 0. Otherwise, map the units to a CONCEPT_ID. Remember that units are case-sensitive in vocabulary.",No,Yes,CONCEPT,CONCEPT_ID,Unit,NA,NA
154154
measurement,range_low,No,float,Ranges have the same unit as the VALUE_AS_NUMBER. These ranges are provided by the source and should remain NULL if not given.,If reference ranges for upper and lower limit of normal as provided (typically by a laboratory) these are stored in the RANGE_HIGH and RANGE_LOW fields. This should be set to NULL if not provided.,No,No,NA,NA,NA,NA,NA
155155
measurement,range_high,No,float,Ranges have the same unit as the VALUE_AS_NUMBER. These ranges are provided by the source and should remain NULL if not given.,If reference ranges for upper and lower limit of normal as provided (typically by a laboratory) these are stored in the RANGE_HIGH and RANGE_LOW fields. This should be set to NULL if not provided.,No,No,NA,NA,NA,NA,NA
156156
measurement,provider_id,No,integer,"The provider associated with measurement record, e.g. the provider who ordered the test or the provider who recorded the result.",The ETL may need to make a choice as to which PROVIDER_ID to put here. Based on what is available this may or may not be different than the provider associated with the overall VISIT_OCCURRENCE record. For example the admitting vs attending physician on an EHR record.,No,Yes,PROVIDER,PROVIDER_ID,NA,NA,NA
157157
measurement,visit_occurrence_id,No,integer,The visit during which the Measurement occurred.,"Depending on the structure of the source data, this may have to be determined based on dates. If a MEASUREMENT_DATE occurs within the start and end date of a Visit it is a valid ETL choice to choose the VISIT_OCCURRENCE_ID from the visit that subsumes it, even if not explicitly stated in the data. While not required, an attempt should be made to locate the VISIT_OCCURRENCE_ID of the measurement record. If a measurement is related to a visit explicitly in the source data, it is possible that the result date of the Measurement falls outside of the bounds of the Visit dates.",No,Yes,VISIT_OCCURRENCE,VISIT_OCCURRENCE_ID,NA,NA,NA
158158
measurement,visit_detail_id,No,integer,"The VISIT_DETAIL record during which the Measurement occurred. For example, if the Person was in the ICU at the time the VISIT_OCCURRENCE record would reflect the overall hospital stay and the VISIT_DETAIL record would reflect the ICU stay during the hospital visit.",Same rules apply as for the VISIT_OCCURRENCE_ID.,No,Yes,VISIT_DETAIL,VISIT_DETAIL_ID,NA,NA,NA
159-
measurement,measurement_source_value,No,varchar(50),"This field houses the verbatim value from the source data representing the Measurement that occurred. For example, this could be an ICD10 or Read code.",This code is mapped to a Standard Measurement Concept in the Standardized Vocabularies and the original code is stored here for reference.,No,No,NA,NA,NA,NA,NA
160-
measurement,measurement_source_concept_id,No,integer,"This is the concept representing the MEASUREMENT_SOURCE_VALUE and may not necessarily be standard. This field is discouraged from use in analysis because it is not required to contain Standard Concepts that are used across the OHDSI community, and should only be used when Standard Concepts do not adequately represent the source detail for the Measurement necessary for a given analytic use case. Consider using MEASUREMENT_CONCEPT_ID instead to enable standardized analytics that can be consistent across the network.",If the MEASUREMENT_SOURCE_VALUE is coded in the source data using an OMOP supported vocabulary put the concept id representing the source value here.,No,Yes,CONCEPT,CONCEPT_ID,NA,NA,NA
159+
measurement,measurement_source_value,No,varchar(50),This field contains the exact value from the source data that represents the measurement that occurred.,This value corresponds to a standardized CONCEPT_ID found in MEASUREMENT_CONCEPT_ID and in the 'Measurement' domain within the Standardized Vocabularies. The original code is retained here for reference purposes.,No,No,NA,NA,NA,NA,NA
160+
measurement,measurement_source_concept_id,No,integer,"This is the concept representing the MEASUREMENT_SOURCE_VALUE and may not necessarily be standard. This field is discouraged from use in analysis because it is not required to contain Standard Concepts that are used across the OHDSI community, and should only be used when Standard Concepts do not adequately represent the source detail for the Measurement necessary for a given analytic use case. Consider using MEASUREMENT_CONCEPT_ID instead to enable standardized analytics that can be consistent across the network.","If the MEASUREMENT_SOURCE_VALUE is coded in the source data using a vocabulary supported by OMOP Standardized Vocabularies, insert the CONCEPT_ID representing the source value here.",No,Yes,CONCEPT,CONCEPT_ID,NA,NA,NA
161161
measurement,unit_source_value,No,varchar(50),This field contains the exact value from the source data that represents the unit of measurement used.,This value corresponds to a standardized CONCEPT_ID found in UNIT_CONCEPT_ID and in the 'Unit' domain within the Standardized Vocabularies. The original code is retained here for reference purposes.,No,No,NA,NA,NA,NA,NA
162162
measurement,value_source_value,No,varchar(50),This field houses the verbatim result value of the Measurement from the source data .,"If both a continuous and categorical result are given in the source data such that both VALUE_AS_NUMBER and VALUE_AS_CONCEPT_ID are both included, store the verbatim value that was mapped to VALUE_AS_CONCEPT_ID here.",No,No,NA,NA,NA,NA,NA
163163
observation,observation_id,Yes,integer,The unique key given to an Observation record for a Person. Refer to the ETL for how duplicate Observations during the same Visit were handled.,Each instance of an observation present in the source data should be assigned this unique key.,Yes,No,NA,NA,NA,NA,NA

0 commit comments

Comments
 (0)