Skip to content

Commit

Permalink
Remove Unused FHIR Paths (#3003)
Browse files Browse the repository at this point in the history
* Remove unused FHIR paths

* Minor cleanup

* Re-add comment

---------

Co-authored-by: Josh Nygaard <josh.nygaard@gmail.com>
  • Loading branch information
JNygaard-Skylight and joshnygaard authored Dec 11, 2024
1 parent 2c516ff commit d78d9b7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions containers/ecr-viewer/src/app/api/fhirPath.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ patientEmergencyContact: "Bundle.entry.resource.where(resourceType = 'Patient').
# Social History
patientCurrentJobTitle: "Bundle.entry.resource.where(resourceType='Observation').where(meta.profile='http://hl7.org/fhir/us/odh/StructureDefinition/odh-PastOrPresentJob').where(effectivePeriod.end.exists().not()).value"
patientTobaccoUse: "Bundle.entry.resource.where(resourceType='Observation').where(code.coding.code='72166-2').where(category.coding.code='social-history').value"
patientDisabilityStatus: "Bundle.entry.resource.where(resourceType='Observation').where(meta.profile='http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-disability-status').where(category.coding.code='social-history').value"
patientHomelessStatus: "Bundle.entry.resource.where(resourceType='Observation').where(code.coding.code='75274-1').where(category.coding.code='social-history').value"
patientPregnancyStatus: "Bundle.entry.resource.where(resourceType='Observation').where(meta.profile='http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-pregnancy-status-observation').value"
patientAlcoholUse: "Bundle.entry.resource.where(resourceType='Observation').where(code.coding.code='11331-6').where(category.coding.code='social-history').value"
Expand All @@ -35,7 +34,6 @@ eicrCustodianRef: "Bundle.entry.resource.where(resourceType= 'Composition').cust
dateTimeEcrCreated: "Bundle.entry.resource.where(resourceType = 'Composition').date"
ehrSoftware: "Bundle.entry.resource.where(resourceType = 'Device').where(property[0].type.coding.code='software').version.value"
ehrManufacturerModel: "Bundle.entry.resource.where(resourceType = 'Device').where(property[0].type.coding.code='software').manufacturer"
senderFacilityName: "Bundle.entry.resource.where(resourceType = 'Encounter')[0].location[0].location.display"
eRSDwarnings: "Bundle.entry.resource.where(resourceType= 'Composition').section.where(title = 'Reportability Response Information Section').extension.where(url = 'http://hl7.org/fhir/us/ecr/StructureDefinition/rr-eicr-processing-status-extension').valueCodeableConcept.coding.entries.eRSDwarnings"
compositionAuthorRefs: "Bundle.entry.resource.where(resourceType = 'Composition').author"

Expand All @@ -61,12 +59,11 @@ encounterIndividualRef: "Encounter.participant.where(type.coding.code = 'ATND').
encounterParticipants: "Encounter.participant"

rrDetails: "Bundle.entry.resource.where(meta.profile = 'http://hl7.org/fhir/us/ecr/StructureDefinition/rr-reportability-information-observation')"
rckmsTriggerSummaries: "Bundle.entry.resource.where(meta.profile = 'http://hl7.org/fhir/us/ecr/StructureDefinition/rr-reportability-information-observation').extension.where(url = 'http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-determination-of-reportability-rule-extension').valueString"

# Clinical Data
clinicalReasonForVisit: "Bundle.entry.resource.section.where(title.lower() = 'reason for visit')[0].extension[0].valueString"

#vitals
# Vitals
patientHeight: "Bundle.entry.resource.where(resourceType='Observation').where(code.coding.code='8302-2').first().valueQuantity.value"
patientHeightMeasurement: "Bundle.entry.resource.where(resourceType='Observation').where(code.coding.first().code='8302-2').first().valueQuantity.unit"
patientHeightDate: "Bundle.entry.resource.where(resourceType='Observation').where(code.coding.first().code='8302-2').first().effectiveDateTime"
Expand Down Expand Up @@ -132,7 +129,6 @@ observationValue: (valueQuantity.value.toString() | valueString | valueCodeableC
observationReferenceRange: "referenceRange.text"
observationDeviceReference: "device.reference"
observationNote: "note.text"
observationMethod: "method"
observationOrganism: "code.coding.display.first()"
observationAntibiotic: "code.coding.display.first()"
observationOrganismMethod: "extension.where(url = 'methodCode originalText').valueString"
Expand Down

0 comments on commit d78d9b7

Please sign in to comment.