From 551f7cc2a55f83734dce39d234c03561149d1361 Mon Sep 17 00:00:00 2001 From: Agnibho Mondal Date: Sat, 2 Sep 2023 16:30:36 +0530 Subject: [PATCH] Added JSON schema version 0.1 --- schema/prescriber-0.1.schema | 33 +++++++++++ schema/prescription-0.1.schema | 100 +++++++++++++++++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 schema/prescriber-0.1.schema create mode 100644 schema/prescription-0.1.schema diff --git a/schema/prescriber-0.1.schema b/schema/prescriber-0.1.schema new file mode 100644 index 0000000..3e079a5 --- /dev/null +++ b/schema/prescriber-0.1.schema @@ -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 index 0000000..e4d2e7d --- /dev/null +++ b/schema/prescription-0.1.schema @@ -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" + ] +} -- 2.39.2