{ "dataModel": { "patient": "patient", "tbcase": "tbcase" }, "title": "${cases.newnotifof} ${CaseClassification.TB.confirmed}", "controls": [ { "type": "date", "label": "${TbCase.registrationDate.TB}", "property": "tbcase.registrationDate", "required": true, "size": { "md": 6 } }, { "property": "tbcase.caseNumber", "label": "${DisplayCaseNumber.TB}", "required": true, "type": "string", "size": { "md": 6 } }, { "type": "subtitle", "label": "${cases.patientdata}", "size": { "sm": 12 } }, { "property": "patient.name", "type": "personName", "label": "${Patient.name}", "required": true, "size": { "md": 10 } }, { "property": "patient.motherName", "type": "string", "size": { "md": 10 } }, { "property": "patient.gender", "type": "select", "newRow": true, "size": { "md": 4 } }, { "property": "tbcase.age", "type": "int", "size": { "md": 4 }, "label": "${TbCase.age}" }, { "property": "patient.birthDate", "type": "date", "size": { "md": 4 } }, { "type": "select", "property": "tbcase.nationality", "label": "${Nationality}", "defaultValue": "NATIVE", "size": { "md": 4 } }, { "property": "tbcase.phoneNumber", "type": "string", "label": "${TbCase.phoneNumber}", "size": { "md": 4 } }, { "property": "tbcase.mobileNumber", "type": "string", "label": "${global.mobile}", "size": { "md": 4 } }, { "property": "tbcase.notifAddress", "label": "${cases.details.addressnotif}", "type": "address", "size": { "md": 8 } }, { "type": "subtitle", "label": "${cases.details.case}", "size": { "sm": 12 }, "newRow": true }, { "type": "date", "label": "${TbCase.diagnosisDate}", "property": "tbcase.diagnosisDate", "required": true, "size": { "md": 4 } }, { "type": "select", "property": "tbcase.registrationGroup", "label": "${TbCase.registrationGroup}", "size": { "md": 4 }, "required": true }, { "type": "select", "property": "tbcase.infectionSite", "label": "${InfectionSite}", "size": { "md": 4 } }, { "type": "select", "property": "tbcase.pulmonaryType", "label": "${TbCase.pulmonaryType}", "size": { "md": 4 }, "visible": { "function": "this.tbcase.infectionSite === 'PULMONARY' || this.tbcase.infectionSite === 'BOTH'" } }, { "type": "select", "property": "tbcase.extrapulmonaryType", "label": "${TbCase.extrapulmonaryType}", "size": { "md": 4 }, "visible": { "function": "this.tbcase.infectionSite === 'EXTRAPULMONARY' || this.tbcase.infectionSite === 'BOTH'" } }, { "type": "select", "property": "tbcase.extrapulmonaryType2", "label": "${TbCase.extrapulmonaryType2}", "size": { "md": 4 }, "visible": { "function": "this.tbcase.infectionSite === 'EXTRAPULMONARY' || this.tbcase.infectionSite === 'BOTH'" } } ] }