@baseUrl = https://devone.aplikasi.web.id/one-api-lab @token = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJNX1VzZXJJRCI6IjMiLCJNX1VzZXJVc2VybmFtZSI6ImFkbWluICIsIk1fVXNlckdyb3VwRGFzaGJvYXJkIjoib25lLXVpLWxhYlwvdGVzdFwvdnVleFwvb25lLXBhdGllbnQtbGlzdC1iYXJjb2RlLXZ2LTYtY3BvbmVcLyIsIk1fVXNlckRlZmF1bHRUX1NhbXBsZVN0YXRpb25JRCI6IjAiLCJNX1N0YWZmTmFtZSI6IkFCSVRBIEpVV0lUQSBTQVJJIiwiaXNfY291cmllciI6Ik4iLCJ0aW1lX2F1dG9sb2dvdXQiOiIxMDAwMDAwIiwiaXAiOiIxMDMuMy4yMjAuMjIxIiwiYWdlbnQiOiJNb3ppbGxhXC81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXRcLzUzNy4zNiAoS0hUTUwsIGxpa2UgR2Vja28pIENocm9tZVwvMTQ5LjAuMC4wIFNhZmFyaVwvNTM3LjM2IiwidmVyc2lvbiI6InYyIiwibGFzdC1sb2dpbiI6IjIwMjYtMDYtMjIgMTE6MjM6MjkiLCJNX1NhdGVsbGl0ZUlEIjowfQ.wkQFPGQ52TeceDQARm8auj6jEb159V46BzTZ9NEE_vM @templateId = 1 @formId = 1 ### Search Screening Template POST {{baseUrl}}/mockup/masterdata/screeningtemplate/search Content-Type: application/json { "token": "{{token}}", "search": "", "page": 1, "row_per_page": 10, "order_by": "id", "order": "asc" } ### Search Screening Template By Name POST {{baseUrl}}/mockup/masterdata/screeningtemplate/search Content-Type: application/json { "token": "{{token}}", "search": "khitan", "page": 1, "row_per_page": 10, "order_by": "name", "order": "asc" } ### Get Template Detail With Forms POST {{baseUrl}}/mockup/masterdata/screeningtemplate/getdetail Content-Type: application/json { "token": "{{token}}", "id": {{templateId}} } ### Get Forms By Template POST {{baseUrl}}/mockup/masterdata/screeningtemplate/getforms Content-Type: application/json { "token": "{{token}}", "template_id": {{templateId}} } ### Add Screening Template POST {{baseUrl}}/mockup/masterdata/screeningtemplate/add Content-Type: application/json { "token": "{{token}}", "code": "SCREENING_TEST", "name": "Screening Test", "description": "Template screening untuk test API" } ### Update Screening Template POST {{baseUrl}}/mockup/masterdata/screeningtemplate/update Content-Type: application/json { "token": "{{token}}", "id": {{templateId}}, "code": "SCREENING_TEST", "name": "Screening Test Update", "description": "Template screening untuk test API update" } ### Delete Screening Template POST {{baseUrl}}/mockup/masterdata/screeningtemplate/delete Content-Type: application/json { "token": "{{token}}", "id": {{templateId}} } ### Add Screening Form - Single POST {{baseUrl}}/mockup/masterdata/screeningtemplate/addform Content-Type: application/json { "token": "{{token}}", "template_id": {{templateId}}, "question": "Apakah pasien sedang demam?", "answer_type": "single", "options": [ {"label": "Ya", "value": false, "id": "o01"}, {"label": "Tidak", "value": false, "id": "o02"} ], "sort_order": 1, "is_required": "Y" } ### Add Screening Form - Text POST {{baseUrl}}/mockup/masterdata/screeningtemplate/addform Content-Type: application/json { "token": "{{token}}", "template_id": {{templateId}}, "question": "Catatan petugas screening", "answer_type": "text", "options": null, "sort_order": 2, "is_required": "N" } ### Update Screening Form POST {{baseUrl}}/mockup/masterdata/screeningtemplate/updateform Content-Type: application/json { "token": "{{token}}", "id": {{formId}}, "template_id": {{templateId}}, "question": "Apakah pasien sedang demam tinggi?", "answer_type": "single", "options": [ {"label": "Ya", "value": false, "id": "o01"}, {"label": "Tidak", "value": false, "id": "o02"} ], "sort_order": 1, "is_required": "Y" } ### Delete Screening Form POST {{baseUrl}}/mockup/masterdata/screeningtemplate/deleteform Content-Type: application/json { "token": "{{token}}", "id": {{formId}} }