Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // FORM
- /**
- * Created by gem on 13/07/2016.
- */
- export default {
- id: "pathology.form",
- fields: [
- "transversia_code",
- {
- key: "synonyms",
- $extends: "synonyms.field"
- },
- "sex",
- "serious",
- "to_be_verified",
- {
- key: "case_taking",
- type: "itemsDataTable",
- itemType: "case-taking",
- primary: "name"
- }
- ]
- }
- // SCHEMA
- /**
- * Created by gem on 13/07/2016.
- */
- export default {
- id: "pathology",
- type: "object",
- properties: {
- "name": {
- title: "Nom",
- type: "string"
- },
- "transversia_code": {
- title: "Code Transversia",
- type: "string"
- },
- synonyms: { $ref: "synonyms" },
- "serious": {
- title: "Grave / Urgence",
- "type": "boolean"
- },
- sex: {
- title: "Sexe",
- type: "string",
- enum: ["Tous sexes", "Seulement les femmes", "Seulement les hommes"]
- },
- to_be_verified: {
- title: "A Vérifier",
- type: "boolean"
- },
- case_taking: {
- type: "array",
- title: "Prise d'observation",
- items: {
- type: "object",
- properties: {
- id: {
- type:"string"
- }
- }
- }
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement