Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gcp-nrces-fhir

Package Overview
Dependencies
Maintainers
0
Versions
368
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gcp-nrces-fhir - npm Package Compare versions

Comparing version 8.7.44 to 8.7.45

9

lib/resources/AllergyIntolerance.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc