gcp-nrces-fhir
Advanced tools
Comparing version 9.0.72 to 9.0.73
@@ -96,6 +96,24 @@ "use strict"; | ||
if (body.item && body.item.length > 0) { | ||
ret += `<table>`; | ||
ret += `<tr> | ||
<th> | ||
Encounter | ||
</th> | ||
<th> | ||
Item | ||
</th> | ||
<th> | ||
Unit Price | ||
</th> | ||
<th> | ||
Quantity | ||
</th> | ||
<th> | ||
Value | ||
</th> | ||
</tr>`; | ||
for (let index = 0; index < body.item.length; index++) { | ||
const el = body.item[index]; | ||
if (el.encounter && el.encounter.length > 0) { | ||
ret += `<h4>Encounter</h4>`; | ||
ret += `<tr>`; | ||
for (let encounterIndex = 0; encounterIndex < el.encounter.length; encounterIndex++) { | ||
@@ -106,8 +124,13 @@ const encounterEl = el.encounter[encounterIndex]; | ||
const curEncounter = new Encounter_1.Encounter().convertFhirToObject(resource.data); | ||
ret += `Encounter : ${curEncounter.text} start Date : ${new TimeZone_1.TimeZone().convertTZ(curEncounter.startDate, "Asia/Kolkata", false)} ${curEncounter.endDate && `End Date : ${new TimeZone_1.TimeZone().convertTZ(curEncounter.startDate, "Asia/Kolkata", false)}`}`; | ||
const encounterString = `Encounter : ${curEncounter.text} start Date : ${new TimeZone_1.TimeZone().convertTZ(curEncounter.startDate, "Asia/Kolkata", false)} ${curEncounter.endDate && `End Date : ${new TimeZone_1.TimeZone().convertTZ(curEncounter.startDate, "Asia/Kolkata", false)}`}`; | ||
ret += `<td>${encounterString}</td>`; | ||
} | ||
} | ||
ret += `<h4>Product and services </h4>`; | ||
ret += `${el.sequence} Name : ${el.productOrService.coding.map(el => this.codingtoHtml(el)).join(", ")}, quantity: ${el.quantity.value} unitPrice ${el.unitPrice.value} ${el.unitPrice.currency}`; | ||
ret += `<td>${el.sequence} ${el.productOrService.coding.map(el => this.codingtoHtml(el)).join(", ")}</td>`; | ||
ret += `<td>${el.unitPrice.currency}${el.unitPrice.value}</td>`; | ||
ret += `<td>${el.quantity.value}</td>`; | ||
ret += `<td>${el.unitPrice.currency} ${(el.unitPrice.value * el.quantity.value).toFixed(2)}</td>`; | ||
ret += `</td>`; | ||
} | ||
ret += `</tr>`; | ||
} | ||
@@ -114,0 +137,0 @@ } |
{ | ||
"name": "gcp-nrces-fhir", | ||
"version": "9.0.72", | ||
"version": "9.0.73", | ||
"description": "Google cloud healthcare api NRCES FHIR implimenataion", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2752132
29415