Skip to content

Commit

Permalink
Carbon Health Onboarding - Test with WA (#17121)
Browse files Browse the repository at this point in the history
* Carbon Health Onboarding - Test with WA

* Update the qualityFilter

* Update routingFilter
  • Loading branch information
oslynn authored Jan 28, 2025
1 parent 69649d6 commit 126c308
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
7 changes: 4 additions & 3 deletions prime-router/settings/STLTs/WA/wa-phd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@
- "Bundle.entry.resource.ofType(Patient).where(address.city.empty()).count() = 0"
- "Bundle.entry.resource.ofType(Patient).where(address.state.empty()).count() = 0"
# "isValidCLIA(testing_lab_clia,reporting_facility_clia)"
- "Bundle.entry.resource.ofType(ServiceRequest).performer.resolve().identifier.where(type.coding.code = 'CLIA').value.getIdType() = 'CLIA'"
- "Bundle.entry.resource.ofType(ServiceRequest).requester.resolve().organization.resolve().identifier.where(type.coding.code = 'CLIA').value.getIdType() = 'CLIA'"
- "Bundle.entry.resource.ofType(Organization).identifier.where(type.coding.code = 'CLIA' or system = 'CLIA').where(value.getIdType() != 'CLIA').count() = 0"
routingFilter:
# # "matches(test_result_status, F, S, P, C, X, I)"
- "Bundle.entry.resource.ofType(DiagnosticReport).where(status in 'final'|'preliminary'|'amended'|'corrected').exists()"
- "Bundle.entry.resource.ofType(MessageHeader).extension('https://reportstream.cdc.gov/fhir/StructureDefinition/sender-id').where(value = 'SimpleReport' or 'carbon-health').exists()"
processingModeFilter:
# "doesNotMatch(processing_mode_code,T,D)"
- "Bundle.entry.resource.ofType(MessageHeader).meta.tag.where(system = 'http://terminology.hl7.org/CodeSystem/v2-0103').code.exists() and Bundle.entry.resource.ofType(MessageHeader).meta.tag.where(system = 'http://terminology.hl7.org/CodeSystem/v2-0103').code != 'T' and Bundle.entry.resource.ofType(MessageHeader).meta.tag.where(system = 'http://terminology.hl7.org/CodeSystem/v2-0103').code != 'D'"
Expand Down Expand Up @@ -113,6 +113,7 @@
filePath: ./upload
credentialName: DEFAULT-SFTP
externalName: null
enrichmentSchemaNames: []
enrichmentSchemaNames:
- "classpath:/metadata/fhir_transforms/common/datetime-to-local/datetime-to-local-pacific.yml"
timeZone: "PACIFIC"
dateTimeFormat: "LOCAL"
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
elements:
- name: hl7-datetime-to-local
resource: "Bundle.descendants().where(url='https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time')"
bundleProperty: "%resource.value[x]"
value: ["%resource.value.changeTimezone('US/Pacific')"]


- name: message-date-time-to-local
resource: 'Bundle.entry.resource.ofType(MessageHeader).extension("https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header").extension("MSH.7")'
condition: '%resource.value.exists()'
bundleProperty: '%resource.value[x]'
value: ["%resource.value.changeTimezone('US/Pacific')"]

0 comments on commit 126c308

Please sign in to comment.