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
d3f42b34
Commit
d3f42b34
authored
Feb 02, 2020
by
Reza Sahebgharan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(register patient update): register patient update date
parent
c597dd92
Pipeline
#1004
passed with stage
in 38 minutes and 15 seconds
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
101 additions
and
20 deletions
+101
-20
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
RegisterPatient.vue
client/components/RegisterPatient.vue
+6
-5
i18n.js
client/plugins/i18n.js
+26
-0
Main.vue
client/views/Main.vue
+66
-13
worklist.js
imports/api/methods/worklist.js
+2
-1
No files found.
.gitlab-ci.yml
View file @
d3f42b34
...
...
@@ -46,7 +46,7 @@ build_in_staging:
tags
:
-
shell
script
:
-
echo "starting build in
devel-windows
"
-
echo "starting build in
staging
"
-
npm install
# - npm run test-jest
-
meteor build C:\output --directory --server-only
...
...
client/components/RegisterPatient.vue
View file @
d3f42b34
...
...
@@ -48,10 +48,10 @@
<v-col
md=
"4"
>
<v-autocomplete
:items=
"itemsOfDeviceMap"
label=
"
DeviceMap
"
label=
"
CodeInHIS
"
v-model=
"selectedDeviceMap"
item-text=
"GroupName"
item-value=
"
GroupName
"
item-value=
"
CodeInHIS
"
return-object
></v-autocomplete>
</v-col>
...
...
@@ -89,7 +89,7 @@
<v-col
cols=
"6"
>
<v-autocomplete
:items=
"itemsOfDeviceMap"
label=
"
DeviceMap
"
label=
"
CodeInHIS
"
v-model=
"selectedDeviceMap"
item-text=
"GroupName"
item-value=
"CodeInHIS"
...
...
@@ -146,10 +146,11 @@ export default {
this
.
registerLoading
=
true
;
let
registerPatient
=
{
...
this
.
registerPatient
}
}
;
if
(
this
.
selectedDeviceMap
)
{
registerPatient
.
CodeInHIS
=
this
.
selectedDeviceMap
.
CodeInHIS
;
registerPatient
.
CodeInHis
=
this
.
selectedDeviceMap
.
CodeInHIS
;
}
Meteor
.
call
(
"Register"
,
registerPatient
,
function
(
err
,
result
)
{
...
...
client/plugins/i18n.js
View file @
d3f42b34
...
...
@@ -152,7 +152,23 @@ const messages = {
chooseLanguage
:
"please choose a language"
,
successfullSave
:
"changes have been successfully saved"
,
chooseImage
:
"please choose an image"
},
NavigationBar
:
{
Worklist
:
"Worklist"
,
HISLink
:
"HISLink"
,
DeviceMap
:
"DeviceMap"
,
Client
:
"Client"
,
Users
:
"Users"
,
Setting
:
"Setting"
,
Signout
:
"Signout"
}
// NavigationBar: {
// Worklist: "لیست کاری",
// HISLink: "درگاه HIS",
// DeviceMap: "نگاشت",
// Client: "دستگاه"
// }
},
'fa'
:
{
Login
:
{
...
...
@@ -305,6 +321,16 @@ const messages = {
chooseLanguage
:
"لطفا یک زبان را انتخاب نمایید"
,
successfullSave
:
"اطلاعات با موفقیت ذخیره گردید"
,
chooseImage
:
"لطفا یک عکس انتخاب نمایید"
},
NavigationBar
:
{
Worklist
:
"لیست کاری"
,
HISLink
:
"درگاه HIS"
,
DeviceMap
:
"نگاشت"
,
Client
:
"دستگاه"
,
Users
:
"کاربران"
,
Setting
:
"تنظیمات"
,
Signout
:
"خروج"
}
}
...
...
client/views/Main.vue
View file @
d3f42b34
...
...
@@ -34,7 +34,7 @@
<v-icon>
settings_applications
</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>
Setting
</v-list-item-title>
<v-list-item-title>
{{$t("NavigationBar.Setting")}}
</v-list-item-title>
</v-list-item-content>
</v-list-item>
<v-list-item
class=
"pl-10"
@
click=
"logoffUser"
>
...
...
@@ -42,7 +42,7 @@
<v-icon>
exit_to_app
</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>
Signout
</v-list-item-title>
<v-list-item-title>
{{$t("NavigationBar.Signout")}}
</v-list-item-title>
</v-list-item-content>
</v-list-item>
</v-list-group>
...
...
@@ -59,7 +59,7 @@
</v-list-item>-->
<v-divider></v-divider>
<v-list-item-group
v-model=
"item"
color=
"primary"
>
<v-list-item
v-for=
"(item, i) in updatedItems"
:key=
"i"
:to=
"item.url"
>
<v-list-item
v-for=
"(item, i) in updatedItems"
:key=
"i"
:to=
"item.url"
class=
"pl-5"
>
<!-- <v-list-item-icon>
<v-icon v-text="item.icon"></v-icon>
</v-list-item-icon>-->
...
...
@@ -102,7 +102,7 @@
<v-icon>
settings_applications
</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>
Setting
</v-list-item-title>
<v-list-item-title>
{{$t("NavigationBar.Setting")}}
</v-list-item-title>
</v-list-item-content>
</v-list-item>
<v-list-item
class=
"pr-10"
@
click=
"logoffUser"
>
...
...
@@ -110,13 +110,13 @@
<v-icon>
exit_to_app
</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>
Signout
</v-list-item-title>
<v-list-item-title>
{{$t("NavigationBar.Signout")}}
</v-list-item-title>
</v-list-item-content>
</v-list-item>
</v-list-group>
<v-divider></v-divider>
<v-list-item-group
v-model=
"item"
color=
"primary"
>
<v-list-item
v-for=
"(item, i) in updatedItems"
:key=
"i"
:to=
"item.url"
>
<v-list-item
v-for=
"(item, i) in updatedItems"
:key=
"i"
:to=
"item.url"
class=
"pr-5"
>
<!-- <v-list-item-icon>
<v-icon v-text="item.icon"></v-icon>
</v-list-item-icon>-->
...
...
@@ -151,6 +151,25 @@ import { Meteor } from "meteor/meteor";
import
RegisterPatient
from
"../components/RegisterPatient.vue"
;
import
{
mapActions
}
from
"vuex"
;
export
default
{
mounted
()
{
debugger
;
this
.
items
.
push
({
text
:
this
.
$t
(
"NavigationBar.Worklist"
),
url
:
"/main/worklist"
});
this
.
items
.
push
({
text
:
this
.
$t
(
"NavigationBar.HISLink"
),
url
:
"/main/hislink"
});
this
.
items
.
push
({
text
:
this
.
$t
(
"NavigationBar.DeviceMap"
),
url
:
"/main/devicemap"
});
this
.
items
.
push
({
text
:
this
.
$t
(
"NavigationBar.Client"
),
url
:
"/main/client"
});
},
components
:
{
"app-footer"
:
AppFooter
,
fragment
:
Fragment
,
...
...
@@ -179,14 +198,23 @@ export default {
this
.
users
.
length
>
0
&&
Meteor
.
users
.
findOne
({
_id
:
Meteor
.
userId
()
}).
username
==
"marcoadmin"
)
{
if
(
this
.
items
.
findIndex
(
item
=>
item
.
text
==
"Users"
)
<
0
)
this
.
items
.
push
({
text
:
"Users"
,
url
:
"/main/users"
});
if
(
this
.
items
.
findIndex
(
item
=>
item
.
text
==
this
.
$t
(
"NavigationBar.Users"
)
)
<
0
)
// this.items.push({ text: "Users", url: "/main/users" });
this
.
items
.
push
({
text
:
this
.
$t
(
"NavigationBar.Users"
),
url
:
"/main/users"
});
}
else
{
const
index
=
this
.
items
.
indexOf
(
"Users"
);
const
index
=
this
.
items
.
indexOf
(
this
.
$t
(
"NavigationBar.Users"
)
);
if
(
index
>
-
1
)
{
this
.
items
.
splice
(
index
,
1
);
}
}
return
this
.
items
;
},
fullName
:
{
...
...
@@ -236,12 +264,37 @@ export default {
left
:
false
,
item
:
0
,
items
:
[
{
text
:
"Worklist"
,
url
:
"/main/worklist"
,
icon
:
"mdi-folder"
},
{
text
:
"HISLink"
,
url
:
"/main/hislink"
,
icon
:
"mdi-account-multiple"
},
{
text
:
"DeviceMap"
,
url
:
"/main/devicemap"
,
icon
:
"mdi-star"
},
{
text
:
"Client"
,
url
:
"/main/client"
}
// { text: "Worklist", url: "/main/worklist", icon: "mdi-folder" },
// { text: "HISLink", url: "/main/hislink", icon: "mdi-account-multiple" },
// { text: "DeviceMap", url: "/main/devicemap", icon: "mdi-star" },
// { text: "Client", url: "/main/client" }
// Worklist: "لیست کاری",
// HISLink: "درگاه HIS",
// DeviceMap: "نگاشت",
// Client: "دستگاه"
]
}),
watch
:
{
"$vuetify.rtl"
(
newvalue
,
oldvalue
)
{
this
.
items
=
[];
this
.
items
.
push
({
text
:
this
.
$t
(
"NavigationBar.Worklist"
),
url
:
"/main/worklist"
});
this
.
items
.
push
({
text
:
this
.
$t
(
"NavigationBar.HISLink"
),
url
:
"/main/hislink"
});
this
.
items
.
push
({
text
:
this
.
$t
(
"NavigationBar.DeviceMap"
),
url
:
"/main/devicemap"
});
this
.
items
.
push
({
text
:
this
.
$t
(
"NavigationBar.Client"
),
url
:
"/main/client"
});
}
},
meteor
:
{
$subscribe
:
{
users
:
[]
...
...
imports/api/methods/worklist.js
View file @
d3f42b34
...
...
@@ -111,9 +111,10 @@ Meteor.methods({
return
true
;
}
},
Register
(
item
)
{
"Register"
(
item
)
{
if
(
this
.
userId
)
{
item
.
_id
=
uuidv4
();
item
.
PatientDate
=
new
Date
();
InternalWorklist
.
insert
({
...
item
...
...
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