PROCEDURE-from-procedure_procedure
Source file: PROCEDURE-from-procedure_procedure.py
Root XPath
./hl7:component/hl7:structuredBody/hl7:component/hl7:section/hl7:templateId[@root='2.16.840.1.113883.10.20.22.2.7' or @root='2.16.840.1.113883.10.20.22.2.7.1']/../hl7:entry/hl7:procedure[@moodCode='EVN']/hl7:statusCode[@code='active' or @code='completed']/..
Expected OMOP domain: Procedure
Fields
Field |
Type |
Order |
Details |
|---|---|---|---|
procedure_occurrence_id |
HASH |
1 |
hash(person_id, provider_id, procedure_concept_id_code, procedure_concept_id_codeSystem, procedure_date, procedure_datetime, procedure_occurrence_id_root, procedure_occurrence_id_extension) |
person_id |
FK |
2 |
FK → |
procedure_concept_id |
DERIVED |
3 |
|
procedure_date |
PRIORITY |
4 |
coalesce candidates by priority |
procedure_datetime |
PRIORITY |
5 |
coalesce candidates by priority |
procedure_type_concept_id |
CONSTANT |
6 |
|
modifier_concept_id |
None |
7 |
— |
quantity |
None |
8 |
— |
provider_id |
FK |
9 |
FK → |
visit_occurrence_id |
FK |
10 |
FK → |
visit_detail_id |
None |
11 |
— |
procedure_source_value |
DERIVED |
12 |
|
procedure_source_concept_id |
DERIVED |
13 |
|
modifier_source_value |
CONSTANT |
14 |
|
data_partner_id |
DERIVED |
20 |
|
filename |
FILENAME |
100 |
source XML filename |
cfg_name |
CONSTANT |
101 |
|
domain_id |
DERIVED |
|
|
procedure_concept_id_code |
FIELD |
|
|
procedure_concept_id_codeSystem |
FIELD |
|
|
procedure_date_eT |
FIELD |
|
|
procedure_date_high |
FIELD |
|
|
procedure_date_low |
FIELD |
|
|
procedure_datetime_eT |
FIELD |
|
|
procedure_datetime_high |
FIELD |
|
|
procedure_datetime_low |
FIELD |
|
|
procedure_occurrence_id_extension |
FIELD |
|
|
procedure_occurrence_id_root |
FIELD |
|
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) |