--- /dev/null
+{
+ "$schema": "http://json-schema.org/draft/2020-12/schema",
+ "title": "chickungunya",
+ "description": "Chikungunya",
+ "type": "object",
+
+ "properties": {
+ "date": {
+ "description": "Date",
+ "type": "string",
+ "format": "date"
+ },
+ "time": {
+ "description": "Time",
+ "type": "string",
+ "format": "time"
+ },
+ "sample": {
+ "description": "Sample",
+ "type": "string"
+ },
+ "chik_igm": {
+ "description": "Chikungunya IgM",
+ "type": "string"
+ }
+ },
+ "required": ["date"]
+}
"type": "string",
"format": "time"
},
+ "labid": {
+ "description": "Lab ID",
+ "type": "string"
+ },
"sample": {
"description": "Sample",
"type": "string"
"type": "string",
"format": "time"
},
+ "labid": {
+ "description": "Lab ID",
+ "type": "string"
+ },
"sample": {
"description": "Sample",
"type": "string"
--- /dev/null
+{
+ "$schema": "http://json-schema.org/draft/2020-12/schema",
+ "title": "dengue",
+ "description": "Dengue",
+ "type": "object",
+
+ "properties": {
+ "date": {
+ "description": "Date",
+ "type": "string",
+ "format": "date"
+ },
+ "time": {
+ "description": "Time",
+ "type": "string",
+ "format": "time"
+ },
+ "sample": {
+ "description": "Sample",
+ "type": "string"
+ },
+ "dengue_ns1": {
+ "description": "Dengue NS1",
+ "type": "string"
+ },
+ "dengue_igm": {
+ "description": "Dengue IgM",
+ "type": "string"
+ }
+ },
+ "required": ["date"]
+}
--- /dev/null
+{
+ "$schema": "http://json-schema.org/draft/2020-12/schema",
+ "title": "hepatitis",
+ "description": "Viral Hepatitis",
+ "type": "object",
+
+ "properties": {
+ "date": {
+ "description": "Date",
+ "type": "string",
+ "format": "date"
+ },
+ "time": {
+ "description": "Time",
+ "type": "string",
+ "format": "time"
+ },
+ "sample": {
+ "description": "Sample",
+ "type": "string"
+ },
+ "hbsag": {
+ "description": "HBsAg",
+ "type": "string"
+ },
+ "hbeag": {
+ "description": "HBeAg",
+ "type": "string"
+ },
+ "antihcv": {
+ "description": "Anti-HCV",
+ "type": "string"
+ },
+ "antihav": {
+ "description": "Anti-HAV",
+ "type": "string"
+ },
+ "antihev": {
+ "description": "Anti-HEV",
+ "type": "string"
+ },
+ "antihbs": {
+ "description": "Anti-HBs",
+ "type": "string"
+ },
+ "antihbc": {
+ "description": "Anti-HBc",
+ "type": "string"
+ },
+ "hbvdna": {
+ "description": "HBV DNA",
+ "type": "string"
+ },
+ "hcvrna": {
+ "description": "HCV RNA",
+ "type": "string"
+ }
+ },
+ "required": ["date"]
+}
--- /dev/null
+{
+ "$schema": "http://json-schema.org/draft/2020-12/schema",
+ "title": "japanese_encephalitis",
+ "description": "Japanese Encephalitis",
+ "type": "object",
+
+ "properties": {
+ "date": {
+ "description": "Date",
+ "type": "string",
+ "format": "date"
+ },
+ "time": {
+ "description": "Time",
+ "type": "string",
+ "format": "time"
+ },
+ "sample": {
+ "description": "Sample",
+ "type": "string"
+ },
+ "jap_e_igm": {
+ "description": "Japanese Encephalitis IgM",
+ "type": "string"
+ }
+ },
+ "required": ["date"]
+}
--- /dev/null
+{
+ "$schema": "http://json-schema.org/draft/2020-12/schema",
+ "title": "leptospira",
+ "description": "Leptospira",
+ "type": "object",
+
+ "properties": {
+ "date": {
+ "description": "Date",
+ "type": "string",
+ "format": "date"
+ },
+ "time": {
+ "description": "Time",
+ "type": "string",
+ "format": "time"
+ },
+ "sample": {
+ "description": "Sample",
+ "type": "string"
+ },
+ "lepto_igm": {
+ "description": "Leptospira IgM",
+ "type": "string"
+ }
+ },
+ "required": ["date"]
+}
--- /dev/null
+{
+ "$schema": "http://json-schema.org/draft/2020-12/schema",
+ "title": "malaria",
+ "description": "Malaria",
+ "type": "object",
+
+ "properties": {
+ "date": {
+ "description": "Date",
+ "type": "string",
+ "format": "date"
+ },
+ "time": {
+ "description": "Time",
+ "type": "string",
+ "format": "time"
+ },
+ "sample": {
+ "description": "Sample",
+ "type": "string"
+ },
+ "mp": {
+ "description": "Malaria Parasite",
+ "type": "string"
+ },
+ "mpda": {
+ "description": "MPDA",
+ "type": "string"
+ }
+ },
+ "required": ["date"]
+}
--- /dev/null
+{
+ "$schema": "http://json-schema.org/draft/2020-12/schema",
+ "title": "scrub",
+ "description": "Scrub Typhus",
+ "type": "object",
+
+ "properties": {
+ "date": {
+ "description": "Date",
+ "type": "string",
+ "format": "date"
+ },
+ "time": {
+ "description": "Time",
+ "type": "string",
+ "format": "time"
+ },
+ "sample": {
+ "description": "Sample",
+ "type": "string"
+ },
+ "scrub_igm": {
+ "description": "Scrub Typhus IgM",
+ "type": "string"
+ }
+ },
+ "required": ["date"]
+}
$testList="";
foreach(glob("forms/report-*.json") as $file){
$form=json_decode(file_get_contents($file));
- $testList=$testList."<option value='".$file."'>".$form->description."</option>";
+ if(!in_array($form->title, ["disk_diffusion","serology"])){
+ $testList=$testList."<option value='".$file."'>".$form->description."</option>";
+ }
}
foreach($inv->tests as $t){
$testList=$testList."<option>".$t."</option>";