Commit f37b9bb2 authored by Reza Sahebgharan's avatar Reza Sahebgharan

fix(simpleschema worklist): update simple schema for worklistedit

parent e90af688
Pipeline #832 skipped with stage
...@@ -19,8 +19,9 @@ ...@@ -19,8 +19,9 @@
</keep-alive>--> </keep-alive>-->
<v-app-bar app clipped-left color="teal lighten-3" dark> <v-app-bar app clipped-left color="teal lighten-3" dark>
<v-app-bar-nav-icon @click.stop="drawer = !drawer"></v-app-bar-nav-icon>
<v-toolbar-title class="red--text">Karname</v-toolbar-title> <v-toolbar-title class="red--text">Karname</v-toolbar-title>
<!-- <v-app-bar-nav-icon @click.stop="drawer = !drawer"></v-app-bar-nav-icon> -->
<v-spacer></v-spacer> <v-spacer></v-spacer>
<!-- <v-app-bar-nav-icon @click.stop="drawerRight = !drawerRight"></v-app-bar-nav-icon> --> <!-- <v-app-bar-nav-icon @click.stop="drawerRight = !drawerRight"></v-app-bar-nav-icon> -->
</v-app-bar> </v-app-bar>
......
...@@ -26,7 +26,7 @@ const workListItemSchema = new SimpleSchema({ ...@@ -26,7 +26,7 @@ const workListItemSchema = new SimpleSchema({
"PatinetSize": SimpleSchema.oneOf(String, Number), "PatinetSize": SimpleSchema.oneOf(String, Number),
"PregnancyStatus": SimpleSchema.oneOf(String, Number), "PregnancyStatus": SimpleSchema.oneOf(String, Number),
"ProcedureID": SimpleSchema.oneOf(String, Number), "ProcedureID": SimpleSchema.oneOf(String, Number),
"ProcedureSteps": [String], "ProcedureSteps": [Object],
"ReferringPhysicianName": SimpleSchema.oneOf(String, Number), "ReferringPhysicianName": SimpleSchema.oneOf(String, Number),
"RequestedProcedureID": SimpleSchema.oneOf(String, Number), "RequestedProcedureID": SimpleSchema.oneOf(String, Number),
"ScheduledStartDate": SimpleSchema.oneOf(String, Number), "ScheduledStartDate": SimpleSchema.oneOf(String, Number),
......
...@@ -10,7 +10,7 @@ import { HTTP } from 'meteor/http'; ...@@ -10,7 +10,7 @@ import { HTTP } from 'meteor/http';
import Worklist from '../collections/worklist.js'; import Worklist from '../collections/worklist.js';
import workListItemSchema from '../collections/worklistItemSchema.js'; // import workListItemSchema from '../collections/worklistItemSchema.js';
Meteor.methods({ Meteor.methods({
'Fetchworklist' (devicemap) { 'Fetchworklist' (devicemap) {
...@@ -83,9 +83,10 @@ Meteor.methods({ ...@@ -83,9 +83,10 @@ Meteor.methods({
// "StudyInstanceUID": "1.3.12.2.1107.5.2.30.26719.6.8122118808" // "StudyInstanceUID": "1.3.12.2.1107.5.2.30.26719.6.8122118808"
// } // }
// try { // try {
debugger;
if (this.userId) { if (this.userId) {
delete item._id; delete item._id;
workListItemSchema.validate(item); // workListItemSchema.validate(item);
var options = { var options = {
data: item, data: item,
headers: { headers: {
......
...@@ -10,7 +10,6 @@ Meteor.publish("clients", function() { ...@@ -10,7 +10,6 @@ Meteor.publish("clients", function() {
if (this.userId) { if (this.userId) {
return Clients.find({}, { return Clients.find({}, {
reactive: true, reactive: true,
disableOplog: false, disableOplog: false,
pollingThrottleMs: 1000, pollingThrottleMs: 1000,
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
"babel-plugin-transform-remove-console": "^6.9.4", "babel-plugin-transform-remove-console": "^6.9.4",
"cross-env": "^5.2.0", "cross-env": "^5.2.0",
"css-loader": "^3.2.0", "css-loader": "^3.2.0",
"cypress": "^3.6.0", "cypress": "^3.8.1",
"deepmerge": "^4.0.0", "deepmerge": "^4.0.0",
"file-loader": "^4.2.0", "file-loader": "^4.2.0",
"git-revision-webpack-plugin": "^3.0.4", "git-revision-webpack-plugin": "^3.0.4",
......
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