New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gcp-nrces-fhir

Package Overview
Dependencies
Maintainers
1
Versions
438
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 1.0.0 to 1.0.1

4

lib/classess/gcp.d.ts
export default class GcpFhirCRUD {
private healthcare;
private parent;
createFhirResource(body: any, resourceType: string): Promise<any>;
deleteFhirResource(resourceId: string, resourceType: string): Promise<any>;
getFhirResource(resourceId: string, resourceType: string): Promise<any>;
updateFhirResource(updateOptions: any, resourceId: string, resourceType: string): Promise<any>;
}
//# sourceMappingURL=gcp.d.ts.map

@@ -40,2 +40,3 @@ "use strict";

});
this.parent = `projects/${projectId}/locations/${cloudRegion}/datasets/${datasetId}/fhirStores/${fhirStoreId}`;
}

@@ -45,4 +46,3 @@ createFhirResource(body, resourceType) {

try {
const parent = `projects/${projectId}/locations/${cloudRegion}/datasets/${datasetId}/fhirStores/${fhirStoreId}`;
const request = { parent, type: resourceType, requestBody: body };
const request = { parent: this.parent, type: resourceType, requestBody: body };
const resource = yield this.healthcare.projects.locations.datasets.fhirStores.fhir.create(request);

@@ -56,4 +56,44 @@ return resource.data;

}
deleteFhirResource(resourceId, resourceType) {
return __awaiter(this, void 0, void 0, function* () {
try {
const name = `${this.parent}/fhir/${resourceType}/${resourceId}`;
const request = { name };
const resource = yield this.healthcare.projects.locations.datasets.fhirStores.fhir.delete(request);
return resource;
}
catch (error) {
console.log(error);
}
});
}
getFhirResource(resourceId, resourceType) {
return __awaiter(this, void 0, void 0, function* () {
try {
const name = `${this.parent}/fhir/${resourceType}/${resourceId}`;
const request = { name };
const resource = yield this.healthcare.projects.locations.datasets.fhirStores.fhir.read(request);
return resource.data;
}
catch (error) {
console.log(error);
}
});
}
updateFhirResource(updateOptions, resourceId, resourceType) {
return __awaiter(this, void 0, void 0, function* () {
try {
const name = `${this.parent}/fhir/${resourceType}/${resourceId}`;
// const name = `projects/${projectId}/locations/${cloudRegion}/datasets/${datasetId}/fhirStores/${fhirStoreId}/fhir/${resourceType}/${resourceId}`;
const request = { name, requestBody: updateOptions };
const resource = yield this.healthcare.projects.locations.datasets.fhirStores.fhir.update(request);
return resource;
}
catch (error) {
console.log(error);
}
});
}
}
exports.default = GcpFhirCRUD;
//# sourceMappingURL=gcp.js.map
interface config {
id?: string;
name: string;

@@ -12,2 +13,3 @@ age: string;

resourceType: string;
id: string;
meta: {

@@ -14,0 +16,0 @@ versionId: string;

2

lib/resources/Patient.js

@@ -7,3 +7,3 @@ "use strict";

"resourceType": "Patient",
// "id" : "example-01",
"id": `${options.id}`,
"meta": {

@@ -10,0 +10,0 @@ "versionId": "1",

interface config {
id?: string;
name: string;

@@ -9,2 +10,3 @@ qualification: string;

resourceType: string;
id: string;
meta: {

@@ -11,0 +13,0 @@ versionId: string;

@@ -7,3 +7,3 @@ "use strict";

"resourceType": "Practitioner",
// "id" : "example-01",
"id": `${options.id}`,
"meta": {

@@ -10,0 +10,0 @@ "versionId": "1",

{
"name": "gcp-nrces-fhir",
"version": "1.0.0",
"version": "1.0.1",
"description": "Google cloud healthcare api Nrces Fhir imlimenataion",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

# gcp-nrces-fhir
This is Google cloud healthcare api Nrces fhir
use keys as environmental variables for private key put ""
GCP_FHIR_type =service_account
GCP_FHIR_project_id=
GCP_FHIR_private_key_id=
GCP_FHIR_private_key="-----BEGIN PRIVATE KEY----- -----END PRIVATE KEY-----\n"
GCP_FHIR_client_email=
GCP_FHIR_client_id=
GCP_FHIR_auth_uri=https://accounts.google.com/o/oauth2/auth
GCP_FHIR_token_uri=https://oauth2.googleapis.com/token",
GCP_FHIR_auth_provider_x509_cert_url=https://www.googleapis.com/oauth2/v1/certs
GCP_FHIR_client_x509_cert_url=https://www.googleapis.com/robot/v1/metadata/x509/fhir-837%40psychic-city-328609.iam.gserviceaccount.com
GCP_FHIR_cloudRegion=
GCP_FHIR_projectId=
GCP_FHIR_datasetId=
GCP_FHIR_fhirStoreId=

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

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