{
  "name": "PatientCarePlanDetailsService",
  "connector": "rest",
  "baseURL": "",
  "crud": true,
  "options": {
    "baseUrl": "PATIENT_ONBOARDING_SERVICE_URL",
    "headers": {
      "accept": "application/json",
      "content-type": "application/json"
    }
  },
  "operations": [
    {
      "template": {
        "method": "POST",
        "url": "/patient-care-plan-details",
        "headers": {
          "content-type": "application/json",
          "Authorization": "{token}"
        },
        "body": "{patientCarePlanDetails}"
      },
      "functions": {
        "create": [
          "patientCarePlanDetails",
          "token"
        ]
      }
    },
    {
      "template": {
        "method": "GET",
        "url": "/patient-care-plan-details/count",
        "headers": {
          "content-type": "application/json",
          "Authorization": "{token}"
        },
        "query": {
          "where": "{where}"
        }
      },
      "functions": {
        "count": [
          "where",
          "token"
        ]
      }
    },
    {
      "template": {
        "method": "PATCH",
        "url": "/patient-care-plan-details",
        "headers": {
          "content-type": "application/json",
          "Authorization": "{token}"
        },
        "body": "{patientCarePlanDetails}",
        "query": {
          "where": "{where}"
        }
      },
      "functions": {
        "updateAll": [
          "patientCarePlanDetails",
          "where",
          "token"
        ]
      }
    },
    {
      "template": {
        "method": "GET",
        "url": "/patient-care-plan-details/{id}",
        "headers": {
          "content-type": "application/json",
          "Authorization": "{token}"
        },
        "query": "{filter}"
      },
      "functions": {
        "findById": [
          "id",
          "filter",
          "token"
        ]
      }
    },
    {
      "template": {
        "method": "GET",
        "url": "/patient-care-plan-details",
        "headers": {
          "content-type": "application/json",
          "Authorization": "{token}"
        },
        "query": {
          "filter": "{filter}"
        }
      },
      "functions": {
        "find": [
          "filter",
          "token"
        ]
      }
    },
    {
      "template": {
        "method": "PATCH",
        "url": "/patient-care-plan-details/{id}",
        "headers": {
          "content-type": "application/json",
          "Authorization": "{token}"
        },
        "body": "{patientCarePlanDetails}"
      },
      "functions": {
        "updateById": [
          "id",
          "patientCarePlanDetails",
          "token"
        ]
      }
    },
    {
      "template": {
        "method": "PUT",
        "url": "/patient-care-plan-details/{id}",
        "headers": {
          "content-type": "application/json",
          "Authorization": "{token}"
        },
        "body": "{patientCarePlanDetails}"
      },
      "functions": {
        "replaceById": [
          "id",
          "patientCarePlanDetails",
          "token"
        ]
      }
    },
    {
      "template": {
        "method": "DELETE",
        "url": "/patient-care-plan-details/{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"
        ]
      }
    }
  ]
}