LT-67: Adjusting schema to switch to forms and inputs

This commit is contained in:
Bruno Alves de Faria 2016-08-29 14:05:53 -03:00
parent dce2f89f37
commit eb63e88581

View File

@ -3,23 +3,23 @@ import { SimpleSchema } from 'meteor/aldeed:simple-schema';
export const DICOMWebRequestOptions = new SimpleSchema({ export const DICOMWebRequestOptions = new SimpleSchema({
auth: { auth: {
type: String, type: String,
label: 'Username:Password Authentication String', label: 'Authentication',
optional: true optional: true
}, },
logRequests: { logRequests: {
type: Boolean, type: Boolean,
defaultValue: true, defaultValue: true,
label: 'Log Requests?', label: 'Requests',
}, },
logResponses: { logResponses: {
type: Boolean, type: Boolean,
defaultValue: false, defaultValue: false,
label: 'Log Responses?', label: 'Responses',
}, },
logTiming: { logTiming: {
type: Boolean, type: Boolean,
defaultValue: true, defaultValue: true,
label: 'Log Timing?', label: 'Timing',
}, },
}); });
@ -31,35 +31,35 @@ export const DICOMWebServer = new SimpleSchema({
}, },
wadoUriRoot: { wadoUriRoot: {
type: String, type: String,
label: 'WADO URI Root', label: 'WADO URI root',
max: 1000
},
qidoRoot: {
type: String,
label: 'QIDO Root',
max: 1000 max: 1000
}, },
// TODO: Remove this // TODO: Remove this
wadoUriRootNOTE: { wadoUriRootNOTE: {
type: String, type: String,
label: 'WADO URI Root Note', label: 'WADO URI root note',
optional: true optional: true
}, },
wadoRoot: { wadoRoot: {
type: String, type: String,
label: 'WADO Root', label: 'WADO root',
max: 1000
},
imageRendering: {
type: String,
label: 'Image rendering',
defaultValue: 'wadouri'
},
qidoRoot: {
type: String,
label: 'QIDO root',
max: 1000 max: 1000
}, },
qidoSupportsIncludeField: { qidoSupportsIncludeField: {
type: Boolean, type: Boolean,
label: 'QIDO Supports Include Field?', label: 'QIDO supports including fields',
defaultValue: false defaultValue: false
}, },
imageRendering: {
type: String,
label: 'Image Rendering',
defaultValue: 'wadouri'
},
requestOptions: { requestOptions: {
type: DICOMWebRequestOptions, type: DICOMWebRequestOptions,
label: 'Request Options' label: 'Request Options'
@ -67,9 +67,17 @@ export const DICOMWebServer = new SimpleSchema({
}); });
export const DIMSEPeer = new SimpleSchema({ export const DIMSEPeer = new SimpleSchema({
aeTitle: {
type: String,
label: 'Application Entity (AE) Title',
},
hostAE: {
type: String,
label: 'Application Entity (AE) Host',
},
host: { host: {
type: String, type: String,
label: 'Host URL', label: 'Host Domain/IP',
}, },
port: { port: {
type: Number, type: Number,
@ -78,18 +86,14 @@ export const DIMSEPeer = new SimpleSchema({
defaultValue: 11112, defaultValue: 11112,
max: 65535 max: 65535
}, },
aeTitle: {
type: String,
label: 'Application Entity (AE) Title',
},
default: { default: {
type: Boolean, type: Boolean,
label: 'Default?', label: 'Default',
defaultValue: false defaultValue: false
}, },
server: { server: {
type: Boolean, type: Boolean,
label: 'Server?', label: 'Server',
defaultValue: false defaultValue: false
}, },
supportsInstanceRetrievalByStudyUid: { supportsInstanceRetrievalByStudyUid: {
@ -102,7 +106,7 @@ export const DIMSEPeer = new SimpleSchema({
export const DIMSEServer = new SimpleSchema({ export const DIMSEServer = new SimpleSchema({
name: { name: {
type: String, type: String,
label: 'Name', label: 'Server Name',
max: 100 max: 100
}, },
peers: { peers: {