]> Softwares of Agnibho - medscript.git/commitdiff
Added JSON schema version 0.1
authorAgnibho Mondal <mondal@agnibho.com>
Sat, 2 Sep 2023 11:00:36 +0000 (16:30 +0530)
committerAgnibho Mondal <mondal@agnibho.com>
Sat, 2 Sep 2023 11:00:36 +0000 (16:30 +0530)
schema/prescriber-0.1.schema [new file with mode: 0644]
schema/prescription-0.1.schema [new file with mode: 0644]

diff --git a/schema/prescriber-0.1.schema b/schema/prescriber-0.1.schema
new file mode 100644 (file)
index 0000000..3e079a5
--- /dev/null
@@ -0,0 +1,33 @@
+{
+  "$schema": "http://json-schema.org/draft-04/schema#",
+  "type": "object",
+  "properties": {
+    "name": {
+      "type": "string"
+    },
+    "qualification": {
+      "type": "string"
+    },
+    "registration": {
+      "type": "string"
+    },
+    "address": {
+      "type": "string"
+    },
+    "contact": {
+      "type": "string"
+    },
+    "extra": {
+      "type": "string"
+    }
+  },
+  "required": [
+    "name",
+    "qualification",
+    "registration",
+    "address",
+    "contact",
+    "extra"
+  ]
+}
+
diff --git a/schema/prescription-0.1.schema b/schema/prescription-0.1.schema
new file mode 100644 (file)
index 0000000..e4d2e7d
--- /dev/null
@@ -0,0 +1,100 @@
+{
+  "$schema": "http://json-schema.org/draft-04/schema#",
+  "type": "object",
+  "properties": {
+    "date": {
+      "type": "string"
+    },
+    "id": {
+      "type": "string"
+    },
+    "name": {
+      "type": "string"
+    },
+    "age": {
+      "type": "string"
+    },
+    "sex": {
+      "type": "string"
+    },
+    "address": {
+      "type": "string"
+    },
+    "contact": {
+      "type": "string"
+    },
+    "extra": {
+      "type": "string"
+    },
+    "mode": {
+      "type": "string"
+    },
+    "daw": {
+      "type": "boolean"
+    },
+    "note": {
+      "type": "string"
+    },
+    "report": {
+      "type": "string"
+    },
+    "investigation": {
+      "type": "string"
+    },
+    "medication": {
+      "type": "string"
+    },
+    "advice": {
+      "type": "string"
+    },
+    "prescriber": {
+      "type": "object",
+      "properties": {
+        "name": {
+          "type": "string"
+        },
+        "qualification": {
+          "type": "string"
+        },
+        "registration": {
+          "type": "string"
+        },
+        "address": {
+          "type": "string"
+        },
+        "contact": {
+          "type": "string"
+        },
+        "extra": {
+          "type": "string"
+        }
+      },
+      "required": [
+        "name",
+        "qualification",
+        "registration",
+        "address",
+        "contact",
+        "extra"
+      ]
+    }
+  },
+  "required": [
+    "date",
+    "id",
+    "name",
+    "age",
+    "sex",
+    "address",
+    "contact",
+    "extra",
+    "mode",
+    "daw",
+    "note",
+    "report",
+    "investigation",
+    "medication",
+    "advice",
+    "prescriber"
+  ]
+}