DEVICE-from-act_observation_playingEntity
Source file: DEVICE-from-act_observation_playingEntity.py
Root XPath
./hl7:component/hl7:structuredBody/hl7:component/hl7:section/hl7:entry/hl7:act/hl7:entryRelationship/hl7:observation/hl7:participant/hl7:participantRole/hl7:playingEntity
Expected OMOP domain: Device
Fields
Field |
Type |
Order |
Details |
|---|---|---|---|
device_exposure_id |
HASH |
1 |
hash(person_id, provider_id, device_concept_id_code, device_concept_id_codeSystem, device_exposure_start_date, device_exposure_start_datetime, device_exposure_end_date, device_exposure_end_datetime, device_exposure_id_root, device_exposure_id_extension) |
person_id |
FK |
2 |
FK → |
device_concept_id |
DERIVED |
3 |
|
device_exposure_start_date |
PRIORITY |
4 |
coalesce candidates by priority |
device_exposure_start_datetime |
PRIORITY |
5 |
coalesce candidates by priority |
device_exposure_end_date |
PRIORITY |
6 |
coalesce candidates by priority |
device_exposure_end_datetime |
PRIORITY |
7 |
coalesce candidates by priority |
device_type_concept_id |
CONSTANT |
8 |
|
unique_device_id |
FIELD |
9 |
|
quantity |
None |
10 |
— |
provider_id |
FK |
11 |
FK → |
visit_occurrence_id |
FK |
12 |
FK → |
visit_detail_id |
None |
13 |
— |
device_source_value |
DERIVED |
14 |
|
device_source_concept_id |
DERIVED |
15 |
|
data_partner_id |
DERIVED |
20 |
|
filename |
FILENAME |
100 |
source XML filename |
cfg_name |
CONSTANT |
101 |
|
device_concept_id_code |
FIELD |
|
|
device_concept_id_codeSystem |
FIELD |
|
|
device_exposure_end_date_act_high |
FIELD |
|
|
device_exposure_end_date_observation_high |
FIELD |
|
|
device_exposure_end_datetime_act_high |
FIELD |
|
|
device_exposure_end_datetime_observation_high |
FIELD |
|
|
device_exposure_id_extension |
FIELD |
|
|
device_exposure_id_root |
FIELD |
|
|
device_exposure_start_date_act_low |
FIELD |
|
|
device_exposure_start_date_act_value |
FIELD |
|
|
device_exposure_start_date_observation_low |
FIELD |
|
|
device_exposure_start_date_observation_value |
FIELD |
|
|
device_exposure_start_datetime_act_low |
FIELD |
|
|
device_exposure_start_datetime_act_value |
FIELD |
|
|
device_exposure_start_datetime_observation_low |
FIELD |
|
|
device_exposure_start_datetime_observation_value |
FIELD |
|
|
domain_id |
DERIVED |
|
Config type reference
config_type |
Meaning |
|---|---|
ROOT |
Defines the XPath root element for this config |
FIELD |
Extracts an XML attribute value via XPath |
DERIVED |
Computed by a Python function from other fields |
HASH |
MD5/hash of a set of fields, used as a surrogate key |
FK |
Foreign key copied from a joined dataset |
CONSTANT |
Fixed literal value written to every row |
PRIORITY |
Coalesces the first non-null value from prioritized candidates |
FILENAME |
The source XML filename |
None |
Not populated (placeholder) |