From: Agnibho Mondal Date: Sat, 2 Sep 2023 11:00:36 +0000 (+0530) Subject: Added JSON schema version 0.1 X-Git-Tag: v0.1~2 X-Git-Url: https://code.agnibho.com/repo?a=commitdiff_plain;h=551f7cc2a55f83734dce39d234c03561149d1361;p=medscript.git Added JSON schema version 0.1 --- 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" + ] +}