cladteam / CCDA_OMOP_by_Python

2 stars 3 forks source link

Business Rule: CCDA section element shall not contain attribute nullFlavor="NI" #53

Open AdamLeeIT opened 2 months ago

AdamLeeIT commented 2 months ago

Any CCDA document with a is a Continuity of Care Document (CCD) (V3) document. For each document with this template the following sections are required, aka SHALL in HL7 specification. Allergies and Intolerances Section (entries required) (V3) (identifier: 2.16.840.1.113883.10.20.22.2.6.1) Medications Section (entries required) (V2) (identifier: 2.16.840.1.113883.10.20.22.2.1.1) Problem Section (entries required) (V3) (identifier: 2.16.840.1.113883.10.20.22.2.5.1) Results Section (entries required) (V3) (identifier: 2.16.840.1.113883.10.20.22.2.3.1) Social History Section (V3) (identifier: 2.16.840.1.113883.10.20.22.2.17) Vital Signs Section (entries required) (V3) (identifier: 2.16.840.1.113883.10.20.22.2.4.1)

These are required but maybe empty. If a section is empty, the

element shall contain the attribute nullFlavor="NI" We need not to parse these sections. IDK if this should in parse_field_from_dict or parse_field_from_dict, but all it would do is perhaps increase throughput.

chrisroederucdenver commented 2 months ago

Well explained here. Thanks. And

I'm not concerned about NI as a runtime optimization. It's just an 'if' statement, so no harm. I'll all for keeping record of this, but deferring it's implementation.