gcp-nrces-fhir
Advanced tools
Comparing version 8.7.44 to 8.7.45
import { ResourceMaster } from "../Interfaces"; | ||
import { CodeDisplay } from "../config/index"; | ||
import { CODEABLE_CONCEPT, MULTI_RESOURCE } from "../config/index"; | ||
import ResourceMain from "./ResourceMai"; | ||
@@ -8,2 +8,5 @@ export declare const allergyClinicalStatusArray: readonly ["active", "inactive", "resolved"]; | ||
declare type AllergyVerificationStatus = typeof allergyVerificationStatusArray[number]; | ||
interface RECORDER extends MULTI_RESOURCE { | ||
"resource": "Practitioner" | "PractitionerRole" | "Patient" | "RelatedPerson"; | ||
} | ||
export interface ALLERGY_INTOLERANCE { | ||
@@ -13,7 +16,7 @@ id?: string; | ||
verificationStatus: AllergyVerificationStatus; | ||
allergyIntolerance: CodeDisplay[]; | ||
code: CODEABLE_CONCEPT; | ||
text: string; | ||
patientId: string; | ||
date: string; | ||
practitionerId: string; | ||
recorder?: RECORDER; | ||
note: { | ||
@@ -20,0 +23,0 @@ text: string; |
@@ -44,2 +44,3 @@ "use strict"; | ||
getFHIR(options) { | ||
var _a, _b; | ||
const getAllergy = () => { | ||
@@ -83,9 +84,6 @@ let ret = ""; | ||
}, | ||
code: { | ||
coding: options.allergyIntolerance, | ||
text: options.text, | ||
}, | ||
code: options.code, | ||
patient: { reference: `Patient/${options.patientId}` }, | ||
recordedDate: options.date, | ||
recorder: { reference: `Practitioner/${options.practitionerId}` }, | ||
recorder: { "reference": `${(_a = options.recorder) === null || _a === void 0 ? void 0 : _a.resource}/${(_b = options.recorder) === null || _b === void 0 ? void 0 : _b.id}` }, | ||
note: options.note, | ||
@@ -99,7 +97,7 @@ }; | ||
verificationStatus: options.verificationStatus.coding[0].code, | ||
allergyIntolerance: options.code.coding, | ||
code: options.code, | ||
text: options.code.text, | ||
patientId: `${options.patient.reference}`.substring(8), | ||
date: options.recordedDate, | ||
practitionerId: `${options.recorder.reference}`.substring(13), | ||
recorder: options.recorder && this.getFromMultResource({ "reference": options.recorder.reference }), | ||
note: options.note, | ||
@@ -106,0 +104,0 @@ id: options.id, |
@@ -48,3 +48,3 @@ "use strict"; | ||
} | ||
docHtml += `<div style="text-align:center;"><h5>${options.encounter.text} ${encounterOPIONumber}</h5> | ||
docHtml += `<div style="text-align:center;"><h5>${options.encounter.text}${encounterOPIONumber}</h5> | ||
</div>`; | ||
@@ -51,0 +51,0 @@ let diagnosis = []; |
{ | ||
"name": "gcp-nrces-fhir", | ||
"version": "8.7.44", | ||
"version": "8.7.45", | ||
"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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2512639
26043