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 { Meteor } from 'meteor/meteor';
let internalWorklist = 'internalWorklist';
let internalWorklist = 'InternalHis';
let Worklist;
if (Meteor.isClient || Meteor.isCordova) {
......
import { Mongo } from 'meteor/mongo';
import { Meteor } from 'meteor/meteor';
import { HTTP } from 'meteor/http';
import internalWorklist from '../collections/internalworklist';
let collections = {};
if (Meteor.isServer) {
......@@ -8,6 +9,7 @@ if (Meteor.isServer) {
const result = HTTP.call('GET', `${Meteor.settings.worklistUrl}/HISIntegration.svc/rest/GetHISBrandsRest`);
let brandsHttpResult = JSON.parse(result.content);
let collectionNames = brandsHttpResult.Items.map(brandObj => {
return brandObj.Name
})
......@@ -15,7 +17,10 @@ if (Meteor.isServer) {
// let collectionNames = ["TestWLS"];
for (let collName of collectionNames) {
if (collName != "InternalHis")
collections[collName] = new Mongo.Collection(collName);
else
collections[collName] = internalWorklist;
}
}
......@@ -27,7 +32,10 @@ if (Meteor.isClient || Meteor.isCordova) {
// let collectionNames = ["TestWLS"];
for (let collName of collectionNames) {
if (collName != "InternalHis")
collections[collName] = new Mongo.Collection(collName);
else
collections[collName] = internalWorklist;
}
});
......
......@@ -13,7 +13,7 @@ let uuidv4 = require("uuid/v4");
import Worklist from '../collections/worklist.js';
import InternalWorklist from '../collections/internalworklist.js';
let internalWorklistName = 'internalWorklist';
let internalWorklistName = 'InternalHis';
// 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