projecttacoma/simplexml_parser — pull request #12 by pkmitre (2014-07-30 21:53:11+00:00)
Title: Correctly handle setOp as left hand side of a temporal reference

When parsing logic that has an intersection or other set operator on the LHS, like

AND: Intersection of:
"Diagnostic Study, Performed: Macular Exam (result: Level of Severity of Retinopathy Findings)"
Union of:
"Diagnostic Study, Performed: Macular Exam (result: Macular Edema Findings Absent)"
"Diagnostic Study, Performed: Macular Exam (result: Macular Edema Findings Present)"
during
Union of:
"Occurrence A of Encounter, Performed: Ophthalmological Services"
"Occurrence A of Encounter, Performed: Care Services in Long-Term Residential Facility"

We want to push the temporal reference down to each of the elements, like

AND:
AND: Diagnostic Study, Performed: Macular Exam (result: Level Of Severity Of Retinopathy Findings) during
OR: Occurrence A: Encounter, Performed: Ophthalmological Services
OR: Occurrence A: Encounter, Performed: Care Services in Long-Term Residential Facility
AND:
OR: Diagnostic Study, Performed: Macular Exam (result: Macular Edema Findings Absent) during
OR: Occurrence A: Encounter, Performed: Ophthalmological Services
OR: Occurrence A: Encounter, Performed: Care Services in Long-Term Residential Facility
OR: Diagnostic Study, Performed: Macular Exam (result: Macular Edema Findings Present) during
OR: Occurrence A: Encounter, Performed: Ophthalmological Services
OR: Occurrence A: Encounter, Performed: Care Services in Long-Term Residential Facility