Skip to content

Commit

Permalink
Fixing tests - changing to use MSH-19 instead of MSH-7.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcc-cahilp committed Dec 27, 2024
1 parent b54e6ce commit 3979126
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 60 deletions.
6 changes: 3 additions & 3 deletions testing/configuration/solutions.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"responseOperations" : [ ]
}, {
"id" : "bf3326fe-ab52-4d6c-b37f-7db5f1769c4c",
"solutionName" : "POSTMAN MSH-22-1 Response Transformer - DO NOT DELETE",
"solutionName" : "POSTMAN MSH-19-1 Response Transformer - DO NOT DELETE",
"description" : "Used in Postman Tests",
"version" : "1.0",
"active" : true,
Expand All @@ -184,8 +184,8 @@
"method" : "set",
"id" : "6f750e31-3b60-49bc-a01e-1c2d8b84e3db",
"order" : 0,
"destinationField" : "/MSH-22-1",
"setValue" : "MSH 22 NEW VALUE"
"destinationField" : "/MSH-19-1",
"setValue" : "MSH 19 NEW VALUE"
} ]
} ]
}, {
Expand Down
66 changes: 9 additions & 57 deletions testing/scripts/TS_Integration_Test.postman_collection.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info": {
"_postman_id": "d6c9c438-f003-40b1-ace9-518df0030333",
"_postman_id": "ceb75421-eb48-40f2-a4e5-3c3ec8b1bfff",
"name": "TS Integration Test",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "28864196"
Expand All @@ -25,10 +25,10 @@
" pm.response.to.have.status(200);\r",
"});\r",
"\r",
"pm.test(\"MSH-7 in the response message has been transformed\", function () {\r",
"pm.test(\"MSH-19 in the response message has been transformed\", function () {\r",
" var response = utils.removeNS(xml2Json(responseBody));\r",
" var hl7Message = response['Envelope']['Body']['SubmitSingleMessageResponse']['Hl7Message'];\r",
" pm.expect(utils.hl7Terser(hl7Message, 'MSH', 7, 1)).to.eql('MSH 7 NEW VALUE');\r",
" pm.expect(utils.hl7Terser(hl7Message, 'MSH', 19, 1)).to.eql('MSH 19 NEW VALUE');\r",
"\r",
"\r",
"});\r",
Expand Down Expand Up @@ -698,10 +698,10 @@
" pm.response.to.have.status(200);\r",
"});\r",
"\r",
"pm.test(\"MSH-7 in the response message has been transformed\", function () {\r",
"pm.test(\"MSH-19 in the response message has been transformed\", function () {\r",
" var response = utils.removeNS(xml2Json(responseBody));\r",
" var hl7Message = response['Envelope']['Body']['SubmitSingleMessageResponse']['Hl7Message'];\r",
" pm.expect(utils.hl7Terser(hl7Message, 'MSH', 7, 1)).to.eql('MSH 7 NEW VALUE');\r",
" pm.expect(utils.hl7Terser(hl7Message, 'MSH', 19, 1)).to.eql('MSH 19 NEW VALUE');\r",
"\r",
"\r",
"});\r",
Expand Down Expand Up @@ -1083,10 +1083,10 @@
" pm.response.to.have.status(200);\r",
"});\r",
"\r",
"pm.test(\"MSH-7 in the response message has been transformed\", function () {\r",
"pm.test(\"MSH-19 in the response message has been transformed\", function () {\r",
" var response = utils.removeNS(xml2Json(responseBody));\r",
" var hl7Message = response['Envelope']['Body']['SubmitSingleMessageResponse']['Hl7Message'];\r",
" pm.expect(utils.hl7Terser(hl7Message, 'MSH', 7, 1)).to.eql('MSH 7 NEW VALUE');\r",
" pm.expect(utils.hl7Terser(hl7Message, 'MSH', 19, 1)).to.eql('MSH 19 NEW VALUE');\r",
"\r",
"\r",
"});\r",
Expand Down Expand Up @@ -1531,10 +1531,10 @@
" pm.response.to.have.status(200);\r",
"});\r",
"\r",
"pm.test(\"MSH-7 in the response message has been transformed\", function () {\r",
"pm.test(\"MSH-19 in the response message has been transformed\", function () {\r",
" var response = utils.removeNS(xml2Json(responseBody));\r",
" var hl7Message = response['Envelope']['Body']['SubmitSingleMessageResponse']['Hl7Message'];\r",
" pm.expect(utils.hl7Terser(hl7Message, 'MSH', 7, 1)).to.eql('MSH 7 NEW VALUE');\r",
" pm.expect(utils.hl7Terser(hl7Message, 'MSH', 19, 1)).to.eql('MSH 19 NEW VALUE');\r",
"\r",
"\r",
"});\r",
Expand Down Expand Up @@ -23753,54 +23753,6 @@
"key": "hex1b",
"value": ""
},
{
"key": "currentName",
"value": ""
},
{
"key": "currentId",
"value": ""
},
{
"key": "currentOrganizationId",
"value": ""
},
{
"key": "currentInboundEndpoint",
"value": ""
},
{
"key": "currentOutboundEndpoint",
"value": ""
},
{
"key": "currentActive",
"value": ""
},
{
"key": "createdPipeline",
"value": ""
},
{
"key": "currentCodeSystem",
"value": ""
},
{
"key": "currentCode",
"value": ""
},
{
"key": "currentTargetCodeSystem",
"value": ""
},
{
"key": "currentTargetCode",
"value": ""
},
{
"key": "createdMapping",
"value": ""
},
{
"key": "fhirPatientGiven",
"value": ""
Expand Down

0 comments on commit 3979126

Please sign in to comment.