Got feedback or spotted a mistake?
Leave a comment at the end of this page or email contact@krishagni.com
JSON: Visit Default Fields
Introduction
You can use the below configuration settings to show visit fields for data entry or read-only based on your requirements.
Field Configuration
Field Name | Description | Configuration |
|---|---|---|
Visit Name |
| {
"name": "visit.name",
"caption": "Visit Name",
"type": "text",
"optional": true,
"showIf": {
"op": "OR",
"rules": [
{
"field": "cp.visitNameFmt",
"op": "not_exist"
},
{
"field": "cp.manualVisitNameEnabled",
"op": "exists"
}
]
}
} |
Status |
| {
"name": "visit.status",
"caption": "Status",
"type": "dropdown",
"optional": true,
"listSource": {
"options": [
{
"value": "Pending"
},
{
"value": "Missed Collection"
},
{
"value": "Complete"
}
],
"displayProp": "value",
"selectProp": "value"
}
} |
Missed By |
| {
"name": "visit.missedBy",
"caption": "Missed By",
"type": "user",
"defaultValue": "current_user",
"optional": true,
"showIf": {
"op": "AND",
"rules": [
{
"field": "visit.status",
"op": "==",
"value": "'Missed Collection'"
}
]
},
"showInOverviewIf": "useShowIf"
} |
Missed Reason |
| {
"name": "visit.missedReason",
"caption": "Missed Reason",
"type": "pvs",
"attr": "missed-visit-reason",
"optional": true,
"showIf": {
"op": "AND",
"rules": [
{
"field": "visit.status",
"op": "==",
"value": "'Missed Collection'"
}
]
},
"showInOverviewIf": "useShowIf"
} |
Visit Date |
| {
"name": "visit.visitDate",
"caption": "Visit Date",
"type": "date",
"defaultValue": "current_date",
"optional": false
} |
Site |
| {
"name": "visit.site",
"caption": "Site",
"type": "dropdown",
"multiple": false,
"optional": false,
"listSource": {
"apiUrl": "sites",
"displayProp": "name",
"selectProp": "name",
"queryParams": {
"dynamic": {
"operation": "op"
},
"search": "name"
}
},
"showIf": {
"op": "AND",
"rules": [
{
"field": "visit.status",
"op": "!=",
"value": "'Missed Collection'"
}
]
}
} |
Clinical Diagnoses |
| {
"name": "visit.clinicalDiagnoses",
"caption": "Clinical Diagnoses",
"type": "pvs",
"attr": "clinical_diagnosis",
"optional": true,
"multiple": true,
"showIf": {
"op": "AND",
"rules": [
{
"field": "visit.status",
"op": "!=",
"value": "'Missed Collection'"
}
]
}
} |
Clinical Status |
| {
"name": "visit.clinicalStatus",
"caption": "Clinical Status",
"type": "pvs",
"attr": "clinical-status",
"optional": true,
"showIf": {
"op": "AND",
"rules": [
{
"field": "visit.status",
"op": "!=",
"value": "'Missed Collection'"
}
]
}
} |
Surgical Pathology Number |
| {
"name": "visit.surgicalPathologyNumber",
"caption": "Surgical Pathology Number",
"type": "text",
"optional": true,
"showIf": {
"op": "AND",
"rules": [
{
"field": "visit.status",
"op": "!=",
"value": "'Missed Collection'"
}
]
}
} |
Cohort |
| {
"name" : "visit.cohort",
"caption" : "Cohort",
"type" : "pvs",
"attr" : "cohort",
"optional" : true,
"showIf" : {
"op" : "AND",
"rules" : [ {
"field" : "visit.status",
"op" : "!=",
"value" : "'Missed Collection'"
} ]
}
} |
Comments |
| {
"name": "visit.comments",
"caption": "Comments",
"type": "textarea",
"optional": true
} |
Got feedback or spotted a mistake?
Leave a comment at the end of this page or email contact@krishagni.com