Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. // FORM
  2.  
  3. /**
  4. * Created by gem on 13/07/2016.
  5. */
  6. export default {
  7. id: "pathology.form",
  8. fields: [
  9. "transversia_code",
  10. {
  11. key: "synonyms",
  12. $extends: "synonyms.field"
  13. },
  14. "sex",
  15. "serious",
  16. "to_be_verified",
  17. {
  18. key: "case_taking",
  19. type: "itemsDataTable",
  20. itemType: "case-taking",
  21. primary: "name"
  22. }
  23. ]
  24. }
  25.  
  26. // SCHEMA
  27.  
  28. /**
  29. * Created by gem on 13/07/2016.
  30. */
  31. export default {
  32. id: "pathology",
  33. type: "object",
  34. properties: {
  35. "name": {
  36. title: "Nom",
  37. type: "string"
  38. },
  39. "transversia_code": {
  40. title: "Code Transversia",
  41. type: "string"
  42. },
  43. synonyms: { $ref: "synonyms" },
  44. "serious": {
  45. title: "Grave / Urgence",
  46. "type": "boolean"
  47. },
  48. sex: {
  49. title: "Sexe",
  50. type: "string",
  51. enum: ["Tous sexes", "Seulement les femmes", "Seulement les hommes"]
  52. },
  53. to_be_verified: {
  54. title: "A Vérifier",
  55. type: "boolean"
  56. },
  57. case_taking: {
  58. type: "array",
  59. title: "Prise d'observation",
  60. items: {
  61. type: "object",
  62. properties: {
  63. id: {
  64. type:"string"
  65. }
  66. }
  67. }
  68. }
  69. }
  70. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement