Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
Added ORU example files for integration tests and reoragized files us…
Browse files Browse the repository at this point in the history
…ed for testing (#909)

Co-authored-by: Samuel Aquino <[email protected]>
  • Loading branch information
basiliskus and saquino0827 authored Feb 26, 2024
1 parent fa71cbf commit 7481e38
Show file tree
Hide file tree
Showing 12 changed files with 5,561 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ConsolidatedSummaryTest extends Specification {
def inboundSubmissionId = UUID.randomUUID().toString()

def orderClient = new EndpointClient("/v1/etor/orders")
def labOrderJsonFileString = Files.readString(Path.of("../examples/MN/001_MN_Order_NBS.fhir"))
def labOrderJsonFileString = Files.readString(Path.of("../examples/Test/ORM_O01.fhir"))
def senderName = "flexion.simulated-hospital"
when:
def orderResponse = orderClient.submit(labOrderJsonFileString, inboundSubmissionId, true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import java.nio.file.Path
class DemographicsTest extends Specification {

def demographicsClient = new EndpointClient("/v1/etor/demographics")
def newbornPatientJsonFileString = Files.readString(Path.of("../examples/Other/003_Patient_NBS.fhir"))
def newbornPatientJsonFileString = Files.readString(Path.of("../examples/Test/Patient_NBS.fhir"))

def setup() {
SentPayloadReader.delete()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MetadataTest extends Specification {
def inboundSubmissionId = UUID.randomUUID().toString()
def outboundSubmissionId = "1234567890"
def orderClient = new EndpointClient("/v1/etor/orders")
def labOrderJsonFileString = Files.readString(Path.of("../examples/MN/001_MN_Order_NBS.fhir"))
def labOrderJsonFileString = Files.readString(Path.of("../examples/Test/ORM_O01.fhir"))

when:
def orderResponse = orderClient.submit(labOrderJsonFileString, inboundSubmissionId, true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import java.nio.file.Path
class OrderTest extends Specification {

def orderClient = new EndpointClient("/v1/etor/orders")
def labOrderJsonFileString = Files.readString(Path.of("../examples/MN/001_MN_Order_NBS.fhir"))
def labOrderJsonFileString = Files.readString(Path.of("../examples/Test/ORM_O01.fhir"))
def submissionId = "submissionId"

def setup() {
Expand Down
17 changes: 11 additions & 6 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

#### Minnesota

- [001_MN_Order_NBS.fhir](/examples/MN/001_MN_Order_NBS.fhir)
- [002_MN_OML_O21_NBS.hl7](/examples/MN/002_MN_OML_O21_NBS.hl7)
- [003_MN_ORM_O01_NBS.hl7](/examples/MN/003_MN_ORM_O01_NBS.hl7)
- [003_MN_ORM_O01_NBS_extended.hl7](/examples/MN/003_MN_ORM_O01_NBS_extended.hl7)
Expand Down Expand Up @@ -74,15 +73,21 @@
### Other

- [001_ADT_A01.hl7](/examples/Other/001_ADT_A01.hl7)
- [002_Order.fhir](/examples/Other/002_Order.fhir)
- [003_Patient_NBS.fhir](/examples/Other/003_Patient_NBS.fhir)
- [004_OML_O21.fhir](/examples/Other/004_OML_O21.fhir)

### Test

- [Patient_NBS.fhir](/examples/Test/Patient_NBS.fhir)
- [ORM_O01.fhir](/examples/Test/ORM_O01.fhir)
- [OML_O21_short.fhir](/examples/Test/OML_O21_short.fhir)
- [ORU_R01.fhir](/examples/Test/ORU_R01.fhir)
- [ORU_R01_short.fhir](/examples/Test/ORU_R01_short.fhir)

## Previously renamed files

- `fhir/MN NBS FHIR Order Message.json` => `MN/001_MN_Order_NBS.fhir`
- `fhir/lab_order.json` => `Other/002_Order.fhir`
- `fhir/newborn_patient.json` => `Other/003_Patient_NBS.fhir`
- `fhir/MN NBS FHIR Order Message.json` => `Test/ORM_O01.fhir`
- `fhir/lab_order.json` => `Test/OML_O21_short.fhir`
- `fhir/newborn_patient.json` => `Test/Patient_NBS.fhir`
- `fhir/oml_message.json` => `Other/004_OML_O21.fhir`
- `hl7/AL/Baptist ORM 1.txt` => `Oracle/001_Oracle_ORM_O01.hl7`
- `hl7/AL/Baptist ORM 2.txt` => `Oracle/002_Oracle_ORM_O01.hl7`
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 7481e38

Please sign in to comment.