From 0052e9842cfb1e719e56a0b81a24e8843b8ca1ab Mon Sep 17 00:00:00 2001 From: Zach Robin Date: Tue, 9 Jan 2024 13:12:25 -0800 Subject: [PATCH] prettier run --- .../buildScript.v2017071.js | 84 +++++++++---------- 1 file changed, 41 insertions(+), 43 deletions(-) diff --git a/backend/src/ncpdpScriptBuilder/buildScript.v2017071.js b/backend/src/ncpdpScriptBuilder/buildScript.v2017071.js index e13fccb..49a5370 100644 --- a/backend/src/ncpdpScriptBuilder/buildScript.v2017071.js +++ b/backend/src/ncpdpScriptBuilder/buildScript.v2017071.js @@ -2,49 +2,47 @@ import { XMLBuilder } from 'fast-xml-parser'; export default function buildRxStatus(caseNumber, doctorName, drugNames) { - var time = new Date(); - var rxStatus = - { - 'RxStatus': [ - { - 'Message': [ - { - 'Header': [ - { - 'To': doctorName - }, - { - 'From': 'Pharmacy' // Placeholder: This is dependant on individual pharmacy - }, - { - 'Message': 'NewRx Request Recieved For: ' + drugNames - }, - { - 'RelatesToMessageID': caseNumber // Placeholder: This is dependant on individual pharmacy, using Case Number - }, - { - 'Time': time - }, - ] - }, - { - 'Body': [ - { - 'Status': [ - { - 'Code': '200' // Placeholder: This is dependant on individual pharmacy - } - ] - } - ] - } - + var time = new Date(); + var rxStatus = { + RxStatus: [ + { + Message: [ + { + Header: [ + { + To: doctorName + }, + { + From: 'Pharmacy' // Placeholder: This is dependant on individual pharmacy + }, + { + Message: 'NewRx Request Recieved For: ' + drugNames + }, + { + RelatesToMessageID: caseNumber // Placeholder: This is dependant on individual pharmacy, using Case Number + }, + { + Time: time + } + ] + }, + { + Body: [ + { + Status: [ + { + Code: '200' // Placeholder: This is dependant on individual pharmacy + } ] - } + } + ] + } ] - }; - const builder = new XMLBuilder({ oneListGroup: 'true' }); - var RxStatus = builder.build(rxStatus); + } + ] + }; + const builder = new XMLBuilder({ oneListGroup: 'true' }); + var RxStatus = builder.build(rxStatus); - return RxStatus; -} \ No newline at end of file + return RxStatus; +}