{
    "name": "dailyCheckInsService",
    "connector": "rest",
    "baseURL": "",
    "crud": true,
    "options": {
        "baseUrl": "PATIENT_SERVICE_URL",
        "headers": {
            "accept": "application/json",
            "content-type": "application/json"
        }
    },
    "operations": [
        {
            "template": {
                "method": "POST",
                "url": "/daily-check-ins",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "body": "{dailyCheckIns}"
            },
            "functions": {
                "create": [
                    "dailyCheckIns",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/daily-check-ins/count",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "query": {
                    "where": "{where}"
                }
            },
            "functions": {
                "count": [
                    "where",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "PATCH",
                "url": "/daily-check-ins",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "body": "{dailyCheckIns}",
                "query": {
                    "where": "{where}"
                }
            },
            "functions": {
                "updateAll": [
                    "dailyCheckIns",
                    "where",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/daily-check-ins/{id}",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "query": {
                    "id": "{id}",
                    "filter": "{filter}"
                }
            },
            "functions": {
                "findById": [
                    "id",
                    "filter",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/daily-check-ins",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "query": {
                    "filter": "{filter}"
                }
            },
            "functions": {
                "find": [
                    "filter",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "PATCH",
                "url": "/daily-check-ins/{id}",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "body": "{dailyCheckIns}"
            },
            "functions": {
                "updateById": [
                    "id",
                    "dailyCheckIns",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "PUT",
                "url": "/daily-check-ins/{id}",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "body": "{dailyCheckIns}"
            },
            "functions": {
                "replaceById": [
                    "id",
                    "dailyCheckIns",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "DELETE",
                "url": "/daily-check-ins/{id}",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                }
            },
            "functions": {
                "deleteById": [
                    "id",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/patient/care-plan-details/{patient_id}",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "query": "{id}"
            },
            "functions": {
                "findByPatientId": [
                    "patient_id",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/dialy-checkin-logs",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "query": {
                    "filter": "{filter}"
                }
            },
            "functions": {
                "getCheckInLogs": [
                    "filter",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/dialy-selfi-logs",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "query": {
                    "filter": "{filter}"
                }
            },
            "functions": {
                "getSelfeLogs": [
                    "filter",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "PATCH",
                "url": "/dialy-checkin-logs/{id}",
                "headers": {
                    "Authorization": "{token}"
                },
                "body": "{checkInLog}"
            },
            "functions": {
                "updateCheckInLog": [
                    "id",
                    "checkInLog",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "PATCH",
                "url": "/dialy-selfi-logs/{id}",
                "headers": {
                    "Authorization": "{token}"
                },
                "body": "{selfeLog}"
            },
            "functions": {
                "updateSelfeLog": [
                    "id",
                    "selfeLog",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "POST",
                "url": "/create-content-cards",
                "headers": {
                    "Authorization": "{token}"
                },
                "body": "{patientId}"
            },
            "functions": {
                "createNewUserContentCards": [
                    "patientId",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "POST",
                "url": "/pending-tasks",
                "headers": {
                    "Authorization": "{token}"
                },
                "body": "{patientId}"
            },
            "functions": {
                "createNewUserPendingTasks": [
                    "patientId",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/bpm-configs",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "query": {
                    "filter": "{filter}"
                }
            },
            "functions": {
                "getBpmConfigs": [
                    "filter",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/content-posts",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "query": {
                    "filter": "{filter}"
                }
            },
            "functions": {
                "getContentPosts": [
                    "filter",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "POST",
                "url": "/content-posts",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "body": "{post}"
            },
            "functions": {
                "createContentPosts": [
                    "post",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "PATCH",
                "url": "/content-posts/{id}",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "body": "{post}"
            },
            "functions": {
                "updateContentPosts": [
                    "id",
                    "post",
                    "token"
                ]
            }
        }
    ]
}
