Skip to content

Commit

Permalink
prettier run
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyrobin committed Jan 9, 2024
1 parent c650c23 commit 0052e98
Showing 1 changed file with 41 additions and 43 deletions.
84 changes: 41 additions & 43 deletions backend/src/ncpdpScriptBuilder/buildScript.v2017071.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
return RxStatus;
}

0 comments on commit 0052e98

Please sign in to comment.