...
Expand |
---|
Code Block |
---|
| {
"name" : "cpr.participant.extensionDetail.attrsMap.DP3",
"caption" : "Estimated Date of Delivery",
"showInOverviewIf" : "!!cpr.participant.extensionDetail.attrsMap.DP3",
"type" : "date",
"optional" : true
}, |
|
Example 5: Don’t show field on overview if the value present is “Not Specified“ or “Null“.
Expand |
---|
Code Block |
---|
{
"name" : "visit.clinicalDiagnoses",
"caption" : "Clinical Diagnoses",
"type" : "pvs",
"attr" : "clinical_diagnosis",
"showInOverviewIf" : "!!visit.clinicalDiagnoses && visit.clinicalDiagnoses.length > 0 && (visit.clinicalDiagnoses.length != 1 || visit.clinicalDiagnoses[0] != 'Not Specified')",
"optional" : true,
"multiple" : true,
"showIf" : {
"op" : "AND",
"rules" : [ {
"field" : "visit.status",
"op" : "!=",
"value" : "'Missed Collection'"
} ]
}
} |
|
Example 6: Show the Birth Date field based on collection protocol name.
Expand |
---|
Code Block |
---|
{
"name": "cpr.participant.birthDate",
"caption": "Birth Date",
"type": "date",
"dateOnly": true,
"optional": true,
"showIf": {
"rules": [
{
"field": "['(UAHS) [BW] Brain Health', 'AmolT1'].indexOf(cp.shortTitle)",
"op": "!=",
"value": "-1"
}
]
},
"showInOverviewIf": "useShowIf"
}, |
Screenshot 1: When CP name ((UAHS) [BW] Brain Health) is matched to the rule, then the field “Birth Date” is shown. Image AddedScreenshot 2: When CP name (Accreta Current) is not matched to the rule, then the field “Birth Date” is not shown or hide. Image Added |
Example 7: Show custom field if the specimen type is ‘Fixed Tissue Block' or 'Fixed Tissue Slide’
Expand |
---|
Code Block |
---|
| {
"name" : "specimen.extensionDetail.attrsMap.clinical_block_identifier",
"caption" : "Clinical Block Identifier",
"type" : "text",
"optional" : true,
"showInOverviewIf" : "useShowIf",
"showIf" : {
"op" : "OR",
"rules" : [ {
"field" : "specimen.type",
"op" : "==",
"value" : "'Fixed Tissue Block'"
},
{
"field" : "specimen.type",
"op" : "==",
"value" : "'Fixed Tissue Slide'"
} ]
}
} |
|
Example JSON
Download