gcp-nrces-fhir
Advanced tools
Comparing version 8.1.54 to 8.1.55
@@ -21,2 +21,3 @@ import { CODEABLE_CONCEPT, MULTI_RESOURCE } from "../config"; | ||
id?: string; | ||
labId?: string; | ||
mediaId: string[]; | ||
@@ -23,0 +24,0 @@ issuedDate: string; |
@@ -19,2 +19,5 @@ "use strict"; | ||
let ret = ""; | ||
if (options.labId) { | ||
ret = `${ret}<p>Lab Id: ${options.labId}</p>`; | ||
} | ||
if (options.observations) { | ||
@@ -101,2 +104,18 @@ options.observations.forEach((el) => { | ||
} | ||
if (options.labId) { | ||
identifiers.push({ | ||
type: { | ||
coding: [ | ||
{ | ||
// system: "http://terminology.hl7.org/CodeSystem/v2-0203", | ||
// code: "MR", | ||
display: "Lab Id", | ||
}, | ||
], | ||
}, | ||
"system": "https://www.nicehms.com/labId", | ||
"value": options.labId | ||
}); | ||
} | ||
body.identifier = identifiers; | ||
return body; | ||
@@ -160,2 +179,8 @@ } | ||
} | ||
if (options.identifier) { | ||
const labId = options.identifier.filter((el) => el.system == "https://www.nicehms.com/labId"); | ||
if (labId.length > 0) { | ||
ret.labId = labId[0].value; | ||
} | ||
} | ||
return ret; | ||
@@ -162,0 +187,0 @@ } |
{ | ||
"name": "gcp-nrces-fhir", | ||
"version": "8.1.54", | ||
"version": "8.1.55", | ||
"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
433276
150
6875