Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
karname-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Reza Sahebgharan
karname-ui
Commits
d7cd3c78
Commit
d7cd3c78
authored
Feb 02, 2020
by
Reza Sahebgharan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(update internal his name): update internal his name
parent
d3f42b34
Pipeline
#1005
passed with stage
in 34 minutes and 58 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
internalworklist.js
imports/api/collections/internalworklist.js
+1
-1
worklist4hislink.js
imports/api/collections/worklist4hislink.js
+8
-0
worklist.js
imports/api/methods/worklist.js
+1
-1
No files found.
imports/api/collections/internalworklist.js
View file @
d7cd3c78
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
)
{
...
...
imports/api/collections/worklist4hislink.js
View file @
d7cd3c78
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
;
}
}
});
});
...
...
imports/api/methods/worklist.js
View file @
d7cd3c78
...
@@ -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';
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment