Commit d7cd3c78 authored by Reza Sahebgharan's avatar Reza Sahebgharan

fix(update internal his name): update internal his name

parent d3f42b34
Pipeline #1005 passed with stage
in 34 minutes and 58 seconds
import { Mongo } from 'meteor/mongo'; import { Mongo } from 'meteor/mongo';
import { Meteor } from 'meteor/meteor'; import { Meteor } from 'meteor/meteor';
let internalWorklist = 'internalWorklist'; let internalWorklist = 'InternalHis';
let Worklist; let Worklist;
if (Meteor.isClient || Meteor.isCordova) { if (Meteor.isClient || Meteor.isCordova) {
......
import { Mongo } from 'meteor/mongo'; import { Mongo } from 'meteor/mongo';
import { Meteor } from 'meteor/meteor'; import { Meteor } from 'meteor/meteor';
import { HTTP } from 'meteor/http'; import { HTTP } from 'meteor/http';
import internalWorklist from '../collections/internalworklist';
let collections = {}; let collections = {};
if (Meteor.isServer) { if (Meteor.isServer) {
...@@ -8,6 +9,7 @@ if (Meteor.isServer) { ...@@ -8,6 +9,7 @@ if (Meteor.isServer) {
const result = HTTP.call('GET', `${Meteor.settings.worklistUrl}/HISIntegration.svc/rest/GetHISBrandsRest`); const result = HTTP.call('GET', `${Meteor.settings.worklistUrl}/HISIntegration.svc/rest/GetHISBrandsRest`);
let brandsHttpResult = JSON.parse(result.content); let brandsHttpResult = JSON.parse(result.content);
let collectionNames = brandsHttpResult.Items.map(brandObj => { let collectionNames = brandsHttpResult.Items.map(brandObj => {
return brandObj.Name return brandObj.Name
}) })
...@@ -15,7 +17,10 @@ if (Meteor.isServer) { ...@@ -15,7 +17,10 @@ if (Meteor.isServer) {
// let collectionNames = ["TestWLS"]; // let collectionNames = ["TestWLS"];
for (let collName of collectionNames) { for (let collName of collectionNames) {
if (collName != "InternalHis")
collections[collName] = new Mongo.Collection(collName); collections[collName] = new Mongo.Collection(collName);
else
collections[collName] = internalWorklist;
} }
} }
...@@ -27,7 +32,10 @@ if (Meteor.isClient || Meteor.isCordova) { ...@@ -27,7 +32,10 @@ if (Meteor.isClient || Meteor.isCordova) {
// let collectionNames = ["TestWLS"]; // let collectionNames = ["TestWLS"];
for (let collName of collectionNames) { for (let collName of collectionNames) {
if (collName != "InternalHis")
collections[collName] = new Mongo.Collection(collName); collections[collName] = new Mongo.Collection(collName);
else
collections[collName] = internalWorklist;
} }
}); });
......
...@@ -13,7 +13,7 @@ let uuidv4 = require("uuid/v4"); ...@@ -13,7 +13,7 @@ let uuidv4 = require("uuid/v4");
import Worklist from '../collections/worklist.js'; import Worklist from '../collections/worklist.js';
import InternalWorklist from '../collections/internalworklist.js'; import InternalWorklist from '../collections/internalworklist.js';
let internalWorklistName = 'internalWorklist'; let internalWorklistName = 'InternalHis';
// import workListItemSchema from '../collections/worklistItemSchema.js'; // import workListItemSchema from '../collections/worklistItemSchema.js';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment