Community Mental Health Bundle

API change history

Retrieve Community Mental Health Data

Summary

Gets the Community and Mental Health Summary.

Try it

Request

Request URL

Request parameters

  • integer

    Format - int32.

Request headers

  • string
    Subscription key which provides access to this API. Found in your Profile.
  • string
    OAuth 2.0 access token obtained from CareCentric OAuth2 Server. Supported grant types: Resource owner password.

Request body

Responses

200 OK

Successful operation

Representations

{
  "Summary": {
    "NextOfKin": {
      "NextOfKin": {
        "Rank": "string",
        "ContactType": "string",
        "Relation": "string",
        "Title": "string",
        "PreferredContactMethod": "string",
        "Email": "string",
        "MobilePhone": "string",
        "Surname": "string",
        "GivenName": "string",
        "AddressLine1": "string",
        "AddressLine2": "string",
        "AddressLine3": "string",
        "AddressLine4": "string",
        "AddressLine5": "string",
        "PostCode": "string",
        "Country": "string",
        "MainPhone": "string",
        "OtherPhone": "string",
        "TenancyDescription": "string"
      },
      "Count": 0
    },
    "Diagnosis": {
      "Diagnosis": {
        "DiagnosisDate": "string",
        "ICD10Code": "string",
        "SnomedCTCode": "string",
        "DiagnosisDescription": "string",
        "ConfirmedBy": "string",
        "Comments": "string",
        "TenancyDescription": "string"
      },
      "Count": 0
    },
    "CPA": {
      "CPA": {
        "Active": "string",
        "StartDate": "string",
        "EndDate": "string",
        "Details": "string",
        "TenancyDescription": "string"
      },
      "HistoricCPACount": 0,
      "HistoricCPAMinus12MonthsCount": 0
    },
    "MHA": {
      "MHA": {
        "SectionStartDate": "string",
        "SectionEndDate": "string",
        "MHASection": "string",
        "LeaveStartDate": "string",
        "LeaveEndDate": "string",
        "LeaveStatus": "string",
        "TenancyDescription": "string"
      },
      "Count": 0,
      "HistoricMHAMinus12MonthsCount": 0
    },
    "EIP": {
      "EIPStartDate": "string",
      "ActiveEIP": "string",
      "MainContact": "string",
      "ContactNumber": "string",
      "CarePlan": "string",
      "TenancyDescription": "string"
    },
    "RiskAssessment": {
      "DateOfAssessment": "string",
      "ClinicalSetting": "string",
      "Assessor": "string",
      "Role": "string",
      "TenancyDescription": "string"
    }
  },
  "Detail": {
    "Contacts": [
      {
        "Rank": "string",
        "ContactType": "string",
        "Relation": "string",
        "Title": "string",
        "PreferredContactMethod": "string",
        "Email": "string",
        "MobilePhone": "string",
        "Surname": "string",
        "GivenName": "string",
        "AddressLine1": "string",
        "AddressLine2": "string",
        "AddressLine3": "string",
        "AddressLine4": "string",
        "AddressLine5": "string",
        "PostCode": "string",
        "Country": "string",
        "MainPhone": "string",
        "OtherPhone": "string",
        "TenancyDescription": "string"
      }
    ],
    "Diagnoses": [
      {
        "DiagnosisDate": "string",
        "ICD10Code": "string",
        "SnomedCTCode": "string",
        "DiagnosisDescription": "string",
        "ConfirmedBy": "string",
        "Comments": "string",
        "TenancyDescription": "string"
      }
    ],
    "CPA": {
      "Active": [
        {
          "Active": "string",
          "StartDate": "string",
          "EndDate": "string",
          "Details": "string",
          "TenancyDescription": "string"
        }
      ],
      "HistoricMinus12Months": [
        {
          "Active": "string",
          "StartDate": "string",
          "EndDate": "string",
          "Details": "string",
          "TenancyDescription": "string"
        }
      ],
      "AllHistoric": [
        {
          "Active": "string",
          "StartDate": "string",
          "EndDate": "string",
          "Details": "string",
          "TenancyDescription": "string"
        }
      ]
    },
    "CPALevel": [
      {
        "CPALevel": "string",
        "NextDateOfReview": "string",
        "TenancyDescription": "string"
      }
    ],
    "MHA": {
      "Active": [
        {
          "SectionStartDate": "string",
          "SectionEndDate": "string",
          "MHASection": "string",
          "LeaveStartDate": "string",
          "LeaveEndDate": "string",
          "LeaveStatus": "string",
          "TenancyDescription": "string"
        }
      ],
      "HistoricMinus12Months": [
        {
          "SectionStartDate": "string",
          "SectionEndDate": "string",
          "MHASection": "string",
          "LeaveStartDate": "string",
          "LeaveEndDate": "string",
          "LeaveStatus": "string",
          "TenancyDescription": "string"
        }
      ],
      "AllHistoric": [
        {
          "SectionStartDate": "string",
          "SectionEndDate": "string",
          "MHASection": "string",
          "LeaveStartDate": "string",
          "LeaveEndDate": "string",
          "LeaveStatus": "string",
          "TenancyDescription": "string"
        }
      ]
    },
    "EIP": [
      {
        "EIPStartDate": "string",
        "ActiveEIP": "string",
        "MainContact": "string",
        "ContactNumber": "string",
        "CarePlan": "string",
        "TenancyDescription": "string"
      }
    ],
    "RiskAssessment": [
      {
        "RiskScores": [
          {
            "RiskScoreID": "string",
            "RiskDescription": "string",
            "RiskStatusValue": "string",
            "TenancyDescription": "string"
          }
        ],
        "RiskPlans": [
          {
            "Field1Description": "string",
            "Field1Value": "string",
            "TenancyDescription": "string"
          }
        ],
        "DateOfAssessment": "string",
        "ClinicalSetting": "string",
        "Assessor": "string",
        "Role": "string",
        "TenancyDescription": "string"
      }
    ],
    "Medications": [
      {
        "LastIssueDate": "string",
        "Name": "string",
        "Formulation": "string",
        "Dosage": "string",
        "Route": "string",
        "Frequency": "string",
        "Comments": "string",
        "IssuedBy": "string",
        "TenancyDescription": "string"
      }
    ],
    "Immunisations": [
      {
        "AdministeredDate": "string",
        "Immunisation": "string",
        "Part": "string",
        "Outcome": "string",
        "Location": "string",
        "BodySite": "string",
        "AdminMethod": "string",
        "AdministeredBy": "string",
        "ContactNumber": "string",
        "TenancyDescription": "string"
      }
    ],
    "ClinicalNotes": [
      {
        "CreateTime": "string",
        "Order": "string",
        "Notes": "string",
        "TenancyDescription": "string"
      }
    ]
  }
}
{
  "description": "The community and mental health summary.",
  "type": "object",
  "properties": {
    "Summary": {
      "description": "Gets or sets the summary.",
      "type": "object",
      "properties": {
        "NextOfKin": {
          "description": "Gets or sets the next of kin.",
          "type": "object",
          "properties": {
            "NextOfKin": {
              "description": "Gets or sets the next of kin.",
              "type": "object",
              "properties": {
                "Rank": {
                  "description": "Gets or sets the rank.",
                  "type": "string"
                },
                "ContactType": {
                  "description": "Gets or sets the type of the contact.",
                  "type": "string"
                },
                "Relation": {
                  "description": "Gets or sets the relation.",
                  "type": "string"
                },
                "Title": {
                  "description": "Gets or sets the title.",
                  "type": "string"
                },
                "PreferredContactMethod": {
                  "description": "Gets or sets the Preferred Contact Method.",
                  "type": "string"
                },
                "Email": {
                  "description": "Gets or sets the Email.",
                  "type": "string"
                },
                "MobilePhone": {
                  "description": "Gets or sets the Mobile Phone.",
                  "type": "string"
                },
                "Surname": {
                  "description": "Gets or sets the surname.",
                  "type": "string"
                },
                "GivenName": {
                  "description": "Gets or sets the name of the given.",
                  "type": "string"
                },
                "AddressLine1": {
                  "description": "Gets or sets the address line1.",
                  "type": "string"
                },
                "AddressLine2": {
                  "description": "Gets or sets the address line2.",
                  "type": "string"
                },
                "AddressLine3": {
                  "description": "Gets or sets the address line3.",
                  "type": "string"
                },
                "AddressLine4": {
                  "description": "Gets or sets the address line4.",
                  "type": "string"
                },
                "AddressLine5": {
                  "description": "Gets or sets the address line5.",
                  "type": "string"
                },
                "PostCode": {
                  "description": "Gets or sets the post code.",
                  "type": "string"
                },
                "Country": {
                  "description": "Gets or sets the country.",
                  "type": "string"
                },
                "MainPhone": {
                  "description": "Gets or sets the main phone.",
                  "type": "string"
                },
                "OtherPhone": {
                  "description": "Gets or sets the other phone.",
                  "type": "string"
                },
                "TenancyDescription": {
                  "description": "Gets or sets the tenancy description.",
                  "type": "string"
                }
              }
            },
            "Count": {
              "format": "int32",
              "description": "Gets or sets the count.",
              "type": "integer"
            }
          }
        },
        "Diagnosis": {
          "description": "Gets or sets the diagnosis.",
          "type": "object",
          "properties": {
            "Diagnosis": {
              "description": "Gets or sets the diagnosis.",
              "type": "object",
              "properties": {
                "DiagnosisDate": {
                  "format": "date-time",
                  "description": "Gets or sets the diagnosis date.",
                  "type": "string"
                },
                "ICD10Code": {
                  "description": "Gets or sets the ic D10 code.",
                  "type": "string"
                },
                "SnomedCTCode": {
                  "description": "Gets or sets the snomed ct code.",
                  "type": "string"
                },
                "DiagnosisDescription": {
                  "description": "Gets or sets the diagnosis description.",
                  "type": "string"
                },
                "ConfirmedBy": {
                  "description": "Gets or sets the confirmed by.",
                  "type": "string"
                },
                "Comments": {
                  "description": "Gets or sets the comments.",
                  "type": "string"
                },
                "TenancyDescription": {
                  "description": "Gets or sets the tenancy description.",
                  "type": "string"
                }
              }
            },
            "Count": {
              "format": "int32",
              "description": "Gets or sets the count.",
              "type": "integer"
            }
          }
        },
        "CPA": {
          "description": "Gets or sets the cpa.",
          "type": "object",
          "properties": {
            "CPA": {
              "description": "Gets or sets the Care Programme Approach.",
              "type": "object",
              "properties": {
                "Active": {
                  "description": "Gets or sets the active.",
                  "type": "string"
                },
                "StartDate": {
                  "format": "date-time",
                  "description": "Gets or sets the start date.",
                  "type": "string"
                },
                "EndDate": {
                  "format": "date-time",
                  "description": "Gets or sets the end date.",
                  "type": "string"
                },
                "Details": {
                  "description": "Gets or sets the details.",
                  "type": "string"
                },
                "TenancyDescription": {
                  "description": "Gets or sets the tenancy description.",
                  "type": "string"
                }
              }
            },
            "HistoricCPACount": {
              "format": "int32",
              "description": "Gets or sets the historic Care Programme Approach count.",
              "type": "integer"
            },
            "HistoricCPAMinus12MonthsCount": {
              "format": "int32",
              "description": "Gets or sets the historic Care Programme Approach closed in the last 12 months count.",
              "type": "integer"
            }
          }
        },
        "MHA": {
          "description": "Gets or sets the mha.",
          "type": "object",
          "properties": {
            "MHA": {
              "description": "Gets or sets the Master of Healthcare Administration.",
              "type": "object",
              "properties": {
                "SectionStartDate": {
                  "format": "date-time",
                  "description": "Gets or sets the section start date.",
                  "type": "string"
                },
                "SectionEndDate": {
                  "format": "date-time",
                  "description": "Gets or sets the section end date.",
                  "type": "string"
                },
                "MHASection": {
                  "description": "Gets or sets the Master of Healthcare Administration section.",
                  "type": "string"
                },
                "LeaveStartDate": {
                  "format": "date-time",
                  "description": "Gets or sets the leave start date.",
                  "type": "string"
                },
                "LeaveEndDate": {
                  "format": "date-time",
                  "description": "Gets or sets the leave end date.",
                  "type": "string"
                },
                "LeaveStatus": {
                  "description": "Gets or sets the leave status.",
                  "type": "string"
                },
                "TenancyDescription": {
                  "description": "Gets or sets the tenancy description.",
                  "type": "string"
                }
              }
            },
            "Count": {
              "format": "int32",
              "description": "Gets or sets the count.",
              "type": "integer"
            },
            "HistoricMHAMinus12MonthsCount": {
              "format": "int32",
              "description": "Gets or sets the count minus 12 .",
              "type": "integer"
            }
          }
        },
        "EIP": {
          "description": "Gets or sets the eip.",
          "type": "object",
          "properties": {
            "EIPStartDate": {
              "format": "date-time",
              "description": "Gets or sets the Emerging Infections Program start date.",
              "type": "string"
            },
            "ActiveEIP": {
              "description": "Gets or sets the active Emerging Infections Program.",
              "type": "string"
            },
            "MainContact": {
              "description": "Gets or sets the main contact.",
              "type": "string"
            },
            "ContactNumber": {
              "description": "Gets or sets the contact number.",
              "type": "string"
            },
            "CarePlan": {
              "description": "Gets or sets the care plan.",
              "type": "string"
            },
            "TenancyDescription": {
              "description": "Gets or sets the tenancy description.",
              "type": "string"
            }
          }
        },
        "RiskAssessment": {
          "description": "Gets or sets the risk assessment.",
          "type": "object",
          "properties": {
            "DateOfAssessment": {
              "format": "date-time",
              "description": "Gets or sets the date of assessment.",
              "type": "string"
            },
            "ClinicalSetting": {
              "description": "Gets or sets the clinical setting.",
              "type": "string"
            },
            "Assessor": {
              "description": "Gets or sets the assessor.",
              "type": "string"
            },
            "Role": {
              "description": "Gets or sets the role.",
              "type": "string"
            },
            "TenancyDescription": {
              "description": "Gets or sets the tenancy description.",
              "type": "string"
            }
          }
        }
      }
    },
    "Detail": {
      "description": "Gets or sets the detail.",
      "type": "object",
      "properties": {
        "Contacts": {
          "description": "Gets or sets the contacts.",
          "type": "array",
          "items": {
            "description": "The contact.",
            "type": "object",
            "properties": {
              "Rank": {
                "description": "Gets or sets the rank.",
                "type": "string"
              },
              "ContactType": {
                "description": "Gets or sets the type of the contact.",
                "type": "string"
              },
              "Relation": {
                "description": "Gets or sets the relation.",
                "type": "string"
              },
              "Title": {
                "description": "Gets or sets the title.",
                "type": "string"
              },
              "PreferredContactMethod": {
                "description": "Gets or sets the Preferred Contact Method.",
                "type": "string"
              },
              "Email": {
                "description": "Gets or sets the Email.",
                "type": "string"
              },
              "MobilePhone": {
                "description": "Gets or sets the Mobile Phone.",
                "type": "string"
              },
              "Surname": {
                "description": "Gets or sets the surname.",
                "type": "string"
              },
              "GivenName": {
                "description": "Gets or sets the name of the given.",
                "type": "string"
              },
              "AddressLine1": {
                "description": "Gets or sets the address line1.",
                "type": "string"
              },
              "AddressLine2": {
                "description": "Gets or sets the address line2.",
                "type": "string"
              },
              "AddressLine3": {
                "description": "Gets or sets the address line3.",
                "type": "string"
              },
              "AddressLine4": {
                "description": "Gets or sets the address line4.",
                "type": "string"
              },
              "AddressLine5": {
                "description": "Gets or sets the address line5.",
                "type": "string"
              },
              "PostCode": {
                "description": "Gets or sets the post code.",
                "type": "string"
              },
              "Country": {
                "description": "Gets or sets the country.",
                "type": "string"
              },
              "MainPhone": {
                "description": "Gets or sets the main phone.",
                "type": "string"
              },
              "OtherPhone": {
                "description": "Gets or sets the other phone.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "Diagnoses": {
          "description": "Gets or sets the diagnoses.",
          "type": "array",
          "items": {
            "description": "The diagnosis.",
            "type": "object",
            "properties": {
              "DiagnosisDate": {
                "format": "date-time",
                "description": "Gets or sets the diagnosis date.",
                "type": "string"
              },
              "ICD10Code": {
                "description": "Gets or sets the ic D10 code.",
                "type": "string"
              },
              "SnomedCTCode": {
                "description": "Gets or sets the snomed ct code.",
                "type": "string"
              },
              "DiagnosisDescription": {
                "description": "Gets or sets the diagnosis description.",
                "type": "string"
              },
              "ConfirmedBy": {
                "description": "Gets or sets the confirmed by.",
                "type": "string"
              },
              "Comments": {
                "description": "Gets or sets the comments.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "CPA": {
          "description": "Gets or sets the cpa.",
          "type": "object",
          "properties": {
            "Active": {
              "description": "Gets or sets the active.",
              "type": "array",
              "items": {
                "description": "The Care Programme Approach episode.",
                "type": "object",
                "properties": {
                  "Active": {
                    "description": "Gets or sets the active.",
                    "type": "string"
                  },
                  "StartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the start date.",
                    "type": "string"
                  },
                  "EndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the end date.",
                    "type": "string"
                  },
                  "Details": {
                    "description": "Gets or sets the details.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            },
            "HistoricMinus12Months": {
              "description": "Gets or sets the historic minus12 months.",
              "type": "array",
              "items": {
                "description": "The Care Programme Approach episode.",
                "type": "object",
                "properties": {
                  "Active": {
                    "description": "Gets or sets the active.",
                    "type": "string"
                  },
                  "StartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the start date.",
                    "type": "string"
                  },
                  "EndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the end date.",
                    "type": "string"
                  },
                  "Details": {
                    "description": "Gets or sets the details.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            },
            "AllHistoric": {
              "description": "Gets or sets all historic.",
              "type": "array",
              "items": {
                "description": "The Care Programme Approach episode.",
                "type": "object",
                "properties": {
                  "Active": {
                    "description": "Gets or sets the active.",
                    "type": "string"
                  },
                  "StartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the start date.",
                    "type": "string"
                  },
                  "EndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the end date.",
                    "type": "string"
                  },
                  "Details": {
                    "description": "Gets or sets the details.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "CPALevel": {
          "description": "Gets or sets the Cardiopulmonary arrest level.",
          "type": "array",
          "items": {
            "description": "The Care Programme Approach level.",
            "type": "object",
            "properties": {
              "CPALevel": {
                "description": "Gets or sets the Care Programme Approach level.",
                "type": "string"
              },
              "NextDateOfReview": {
                "format": "date-time",
                "description": "Gets or sets the next date of review.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "MHA": {
          "description": "Gets or sets the mha.",
          "type": "object",
          "properties": {
            "Active": {
              "description": "Gets or sets the active.",
              "type": "array",
              "items": {
                "description": "The act clas.",
                "type": "object",
                "properties": {
                  "SectionStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section start date.",
                    "type": "string"
                  },
                  "SectionEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section end date.",
                    "type": "string"
                  },
                  "MHASection": {
                    "description": "Gets or sets the Master of Healthcare Administration section.",
                    "type": "string"
                  },
                  "LeaveStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave start date.",
                    "type": "string"
                  },
                  "LeaveEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave end date.",
                    "type": "string"
                  },
                  "LeaveStatus": {
                    "description": "Gets or sets the leave status.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            },
            "HistoricMinus12Months": {
              "description": "Gets or sets the historic minus12 months.",
              "type": "array",
              "items": {
                "description": "The act clas.",
                "type": "object",
                "properties": {
                  "SectionStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section start date.",
                    "type": "string"
                  },
                  "SectionEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section end date.",
                    "type": "string"
                  },
                  "MHASection": {
                    "description": "Gets or sets the Master of Healthcare Administration section.",
                    "type": "string"
                  },
                  "LeaveStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave start date.",
                    "type": "string"
                  },
                  "LeaveEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave end date.",
                    "type": "string"
                  },
                  "LeaveStatus": {
                    "description": "Gets or sets the leave status.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            },
            "AllHistoric": {
              "description": "Gets or sets all historic.",
              "type": "array",
              "items": {
                "description": "The act clas.",
                "type": "object",
                "properties": {
                  "SectionStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section start date.",
                    "type": "string"
                  },
                  "SectionEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section end date.",
                    "type": "string"
                  },
                  "MHASection": {
                    "description": "Gets or sets the Master of Healthcare Administration section.",
                    "type": "string"
                  },
                  "LeaveStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave start date.",
                    "type": "string"
                  },
                  "LeaveEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave end date.",
                    "type": "string"
                  },
                  "LeaveStatus": {
                    "description": "Gets or sets the leave status.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "EIP": {
          "description": "Gets or sets the eip.",
          "type": "array",
          "items": {
            "description": "The Emerging Infections Program.",
            "type": "object",
            "properties": {
              "EIPStartDate": {
                "format": "date-time",
                "description": "Gets or sets the Emerging Infections Program start date.",
                "type": "string"
              },
              "ActiveEIP": {
                "description": "Gets or sets the active Emerging Infections Program.",
                "type": "string"
              },
              "MainContact": {
                "description": "Gets or sets the main contact.",
                "type": "string"
              },
              "ContactNumber": {
                "description": "Gets or sets the contact number.",
                "type": "string"
              },
              "CarePlan": {
                "description": "Gets or sets the care plan.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "RiskAssessment": {
          "description": "Gets or sets the risk assessment.",
          "type": "array",
          "items": {
            "description": "The Risk assessment detail.",
            "type": "object",
            "properties": {
              "RiskScores": {
                "description": "Gets or sets the risk scores.",
                "type": "array",
                "items": {
                  "description": "The Risk score.",
                  "type": "object",
                  "properties": {
                    "RiskScoreID": {
                      "description": "Gets or sets the risk score identifier.",
                      "type": "string"
                    },
                    "RiskDescription": {
                      "description": "Gets or sets the risk description.",
                      "type": "string"
                    },
                    "RiskStatusValue": {
                      "description": "Gets or sets the risk status value.",
                      "type": "string"
                    },
                    "TenancyDescription": {
                      "description": "Gets or sets the tenancy description.",
                      "type": "string"
                    }
                  }
                }
              },
              "RiskPlans": {
                "description": "Gets or sets the risk plans.",
                "type": "array",
                "items": {
                  "description": "The risk plan.",
                  "type": "object",
                  "properties": {
                    "Field1Description": {
                      "description": "Gets or sets the field1 description.",
                      "type": "string"
                    },
                    "Field1Value": {
                      "description": "Gets or sets the field1 value.",
                      "type": "string"
                    },
                    "TenancyDescription": {
                      "description": "Gets or sets the tenancy description.",
                      "type": "string"
                    }
                  }
                }
              },
              "DateOfAssessment": {
                "format": "date-time",
                "description": "Gets or sets the date of assessment.",
                "type": "string"
              },
              "ClinicalSetting": {
                "description": "Gets or sets the clinical setting.",
                "type": "string"
              },
              "Assessor": {
                "description": "Gets or sets the assessor.",
                "type": "string"
              },
              "Role": {
                "description": "Gets or sets the role.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "Medications": {
          "description": "Gets or sets the medications.",
          "type": "array",
          "items": {
            "description": "The medication.",
            "type": "object",
            "properties": {
              "LastIssueDate": {
                "format": "date-time",
                "description": "Gets or sets the last issue date.",
                "type": "string"
              },
              "Name": {
                "description": "Gets or sets the name.",
                "type": "string"
              },
              "Formulation": {
                "description": "Gets or sets the formulation.",
                "type": "string"
              },
              "Dosage": {
                "description": "Gets or sets the dosage.",
                "type": "string"
              },
              "Route": {
                "description": "Gets or sets the route.",
                "type": "string"
              },
              "Frequency": {
                "description": "Gets or sets the frequency.",
                "type": "string"
              },
              "Comments": {
                "description": "Gets or sets the comments.",
                "type": "string"
              },
              "IssuedBy": {
                "description": "Gets or sets the issued by.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "Immunisations": {
          "description": "Gets or sets the immunisations.",
          "type": "array",
          "items": {
            "description": "The immunisation model.",
            "type": "object",
            "properties": {
              "AdministeredDate": {
                "format": "date-time",
                "description": "Gets or sets the administered date.",
                "type": "string"
              },
              "Immunisation": {
                "description": "Gets or sets the immunisation.",
                "type": "string"
              },
              "Part": {
                "description": "Gets or sets the part.",
                "type": "string"
              },
              "Outcome": {
                "description": "Gets or sets the outcome.",
                "type": "string"
              },
              "Location": {
                "description": "Gets or sets the location.",
                "type": "string"
              },
              "BodySite": {
                "description": "Gets or sets the body site.",
                "type": "string"
              },
              "AdminMethod": {
                "description": "Gets or sets the admin method.",
                "type": "string"
              },
              "AdministeredBy": {
                "description": "Gets or sets the administered by.",
                "type": "string"
              },
              "ContactNumber": {
                "description": "Gets or sets the contact number.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "ClinicalNotes": {
          "description": "Gets or sets the clinical notes.",
          "type": "array",
          "items": {
            "description": "The note.",
            "type": "object",
            "properties": {
              "CreateTime": {
                "format": "date-time",
                "description": "Gets or sets the create time.",
                "type": "string"
              },
              "Order": {
                "description": "Gets or sets the order.",
                "type": "string"
              },
              "Notes": {
                "description": "Gets or sets the notes.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
{
  "Summary": {
    "NextOfKin": {
      "NextOfKin": {
        "Rank": "string",
        "ContactType": "string",
        "Relation": "string",
        "Title": "string",
        "PreferredContactMethod": "string",
        "Email": "string",
        "MobilePhone": "string",
        "Surname": "string",
        "GivenName": "string",
        "AddressLine1": "string",
        "AddressLine2": "string",
        "AddressLine3": "string",
        "AddressLine4": "string",
        "AddressLine5": "string",
        "PostCode": "string",
        "Country": "string",
        "MainPhone": "string",
        "OtherPhone": "string",
        "TenancyDescription": "string"
      },
      "Count": 0
    },
    "Diagnosis": {
      "Diagnosis": {
        "DiagnosisDate": "string",
        "ICD10Code": "string",
        "SnomedCTCode": "string",
        "DiagnosisDescription": "string",
        "ConfirmedBy": "string",
        "Comments": "string",
        "TenancyDescription": "string"
      },
      "Count": 0
    },
    "CPA": {
      "CPA": {
        "Active": "string",
        "StartDate": "string",
        "EndDate": "string",
        "Details": "string",
        "TenancyDescription": "string"
      },
      "HistoricCPACount": 0,
      "HistoricCPAMinus12MonthsCount": 0
    },
    "MHA": {
      "MHA": {
        "SectionStartDate": "string",
        "SectionEndDate": "string",
        "MHASection": "string",
        "LeaveStartDate": "string",
        "LeaveEndDate": "string",
        "LeaveStatus": "string",
        "TenancyDescription": "string"
      },
      "Count": 0,
      "HistoricMHAMinus12MonthsCount": 0
    },
    "EIP": {
      "EIPStartDate": "string",
      "ActiveEIP": "string",
      "MainContact": "string",
      "ContactNumber": "string",
      "CarePlan": "string",
      "TenancyDescription": "string"
    },
    "RiskAssessment": {
      "DateOfAssessment": "string",
      "ClinicalSetting": "string",
      "Assessor": "string",
      "Role": "string",
      "TenancyDescription": "string"
    }
  },
  "Detail": {
    "Contacts": [
      {
        "Rank": "string",
        "ContactType": "string",
        "Relation": "string",
        "Title": "string",
        "PreferredContactMethod": "string",
        "Email": "string",
        "MobilePhone": "string",
        "Surname": "string",
        "GivenName": "string",
        "AddressLine1": "string",
        "AddressLine2": "string",
        "AddressLine3": "string",
        "AddressLine4": "string",
        "AddressLine5": "string",
        "PostCode": "string",
        "Country": "string",
        "MainPhone": "string",
        "OtherPhone": "string",
        "TenancyDescription": "string"
      }
    ],
    "Diagnoses": [
      {
        "DiagnosisDate": "string",
        "ICD10Code": "string",
        "SnomedCTCode": "string",
        "DiagnosisDescription": "string",
        "ConfirmedBy": "string",
        "Comments": "string",
        "TenancyDescription": "string"
      }
    ],
    "CPA": {
      "Active": [
        {
          "Active": "string",
          "StartDate": "string",
          "EndDate": "string",
          "Details": "string",
          "TenancyDescription": "string"
        }
      ],
      "HistoricMinus12Months": [
        {
          "Active": "string",
          "StartDate": "string",
          "EndDate": "string",
          "Details": "string",
          "TenancyDescription": "string"
        }
      ],
      "AllHistoric": [
        {
          "Active": "string",
          "StartDate": "string",
          "EndDate": "string",
          "Details": "string",
          "TenancyDescription": "string"
        }
      ]
    },
    "CPALevel": [
      {
        "CPALevel": "string",
        "NextDateOfReview": "string",
        "TenancyDescription": "string"
      }
    ],
    "MHA": {
      "Active": [
        {
          "SectionStartDate": "string",
          "SectionEndDate": "string",
          "MHASection": "string",
          "LeaveStartDate": "string",
          "LeaveEndDate": "string",
          "LeaveStatus": "string",
          "TenancyDescription": "string"
        }
      ],
      "HistoricMinus12Months": [
        {
          "SectionStartDate": "string",
          "SectionEndDate": "string",
          "MHASection": "string",
          "LeaveStartDate": "string",
          "LeaveEndDate": "string",
          "LeaveStatus": "string",
          "TenancyDescription": "string"
        }
      ],
      "AllHistoric": [
        {
          "SectionStartDate": "string",
          "SectionEndDate": "string",
          "MHASection": "string",
          "LeaveStartDate": "string",
          "LeaveEndDate": "string",
          "LeaveStatus": "string",
          "TenancyDescription": "string"
        }
      ]
    },
    "EIP": [
      {
        "EIPStartDate": "string",
        "ActiveEIP": "string",
        "MainContact": "string",
        "ContactNumber": "string",
        "CarePlan": "string",
        "TenancyDescription": "string"
      }
    ],
    "RiskAssessment": [
      {
        "RiskScores": [
          {
            "RiskScoreID": "string",
            "RiskDescription": "string",
            "RiskStatusValue": "string",
            "TenancyDescription": "string"
          }
        ],
        "RiskPlans": [
          {
            "Field1Description": "string",
            "Field1Value": "string",
            "TenancyDescription": "string"
          }
        ],
        "DateOfAssessment": "string",
        "ClinicalSetting": "string",
        "Assessor": "string",
        "Role": "string",
        "TenancyDescription": "string"
      }
    ],
    "Medications": [
      {
        "LastIssueDate": "string",
        "Name": "string",
        "Formulation": "string",
        "Dosage": "string",
        "Route": "string",
        "Frequency": "string",
        "Comments": "string",
        "IssuedBy": "string",
        "TenancyDescription": "string"
      }
    ],
    "Immunisations": [
      {
        "AdministeredDate": "string",
        "Immunisation": "string",
        "Part": "string",
        "Outcome": "string",
        "Location": "string",
        "BodySite": "string",
        "AdminMethod": "string",
        "AdministeredBy": "string",
        "ContactNumber": "string",
        "TenancyDescription": "string"
      }
    ],
    "ClinicalNotes": [
      {
        "CreateTime": "string",
        "Order": "string",
        "Notes": "string",
        "TenancyDescription": "string"
      }
    ]
  }
}
{
  "description": "The community and mental health summary.",
  "type": "object",
  "properties": {
    "Summary": {
      "description": "Gets or sets the summary.",
      "type": "object",
      "properties": {
        "NextOfKin": {
          "description": "Gets or sets the next of kin.",
          "type": "object",
          "properties": {
            "NextOfKin": {
              "description": "Gets or sets the next of kin.",
              "type": "object",
              "properties": {
                "Rank": {
                  "description": "Gets or sets the rank.",
                  "type": "string"
                },
                "ContactType": {
                  "description": "Gets or sets the type of the contact.",
                  "type": "string"
                },
                "Relation": {
                  "description": "Gets or sets the relation.",
                  "type": "string"
                },
                "Title": {
                  "description": "Gets or sets the title.",
                  "type": "string"
                },
                "PreferredContactMethod": {
                  "description": "Gets or sets the Preferred Contact Method.",
                  "type": "string"
                },
                "Email": {
                  "description": "Gets or sets the Email.",
                  "type": "string"
                },
                "MobilePhone": {
                  "description": "Gets or sets the Mobile Phone.",
                  "type": "string"
                },
                "Surname": {
                  "description": "Gets or sets the surname.",
                  "type": "string"
                },
                "GivenName": {
                  "description": "Gets or sets the name of the given.",
                  "type": "string"
                },
                "AddressLine1": {
                  "description": "Gets or sets the address line1.",
                  "type": "string"
                },
                "AddressLine2": {
                  "description": "Gets or sets the address line2.",
                  "type": "string"
                },
                "AddressLine3": {
                  "description": "Gets or sets the address line3.",
                  "type": "string"
                },
                "AddressLine4": {
                  "description": "Gets or sets the address line4.",
                  "type": "string"
                },
                "AddressLine5": {
                  "description": "Gets or sets the address line5.",
                  "type": "string"
                },
                "PostCode": {
                  "description": "Gets or sets the post code.",
                  "type": "string"
                },
                "Country": {
                  "description": "Gets or sets the country.",
                  "type": "string"
                },
                "MainPhone": {
                  "description": "Gets or sets the main phone.",
                  "type": "string"
                },
                "OtherPhone": {
                  "description": "Gets or sets the other phone.",
                  "type": "string"
                },
                "TenancyDescription": {
                  "description": "Gets or sets the tenancy description.",
                  "type": "string"
                }
              }
            },
            "Count": {
              "format": "int32",
              "description": "Gets or sets the count.",
              "type": "integer"
            }
          }
        },
        "Diagnosis": {
          "description": "Gets or sets the diagnosis.",
          "type": "object",
          "properties": {
            "Diagnosis": {
              "description": "Gets or sets the diagnosis.",
              "type": "object",
              "properties": {
                "DiagnosisDate": {
                  "format": "date-time",
                  "description": "Gets or sets the diagnosis date.",
                  "type": "string"
                },
                "ICD10Code": {
                  "description": "Gets or sets the ic D10 code.",
                  "type": "string"
                },
                "SnomedCTCode": {
                  "description": "Gets or sets the snomed ct code.",
                  "type": "string"
                },
                "DiagnosisDescription": {
                  "description": "Gets or sets the diagnosis description.",
                  "type": "string"
                },
                "ConfirmedBy": {
                  "description": "Gets or sets the confirmed by.",
                  "type": "string"
                },
                "Comments": {
                  "description": "Gets or sets the comments.",
                  "type": "string"
                },
                "TenancyDescription": {
                  "description": "Gets or sets the tenancy description.",
                  "type": "string"
                }
              }
            },
            "Count": {
              "format": "int32",
              "description": "Gets or sets the count.",
              "type": "integer"
            }
          }
        },
        "CPA": {
          "description": "Gets or sets the cpa.",
          "type": "object",
          "properties": {
            "CPA": {
              "description": "Gets or sets the Care Programme Approach.",
              "type": "object",
              "properties": {
                "Active": {
                  "description": "Gets or sets the active.",
                  "type": "string"
                },
                "StartDate": {
                  "format": "date-time",
                  "description": "Gets or sets the start date.",
                  "type": "string"
                },
                "EndDate": {
                  "format": "date-time",
                  "description": "Gets or sets the end date.",
                  "type": "string"
                },
                "Details": {
                  "description": "Gets or sets the details.",
                  "type": "string"
                },
                "TenancyDescription": {
                  "description": "Gets or sets the tenancy description.",
                  "type": "string"
                }
              }
            },
            "HistoricCPACount": {
              "format": "int32",
              "description": "Gets or sets the historic Care Programme Approach count.",
              "type": "integer"
            },
            "HistoricCPAMinus12MonthsCount": {
              "format": "int32",
              "description": "Gets or sets the historic Care Programme Approach closed in the last 12 months count.",
              "type": "integer"
            }
          }
        },
        "MHA": {
          "description": "Gets or sets the mha.",
          "type": "object",
          "properties": {
            "MHA": {
              "description": "Gets or sets the Master of Healthcare Administration.",
              "type": "object",
              "properties": {
                "SectionStartDate": {
                  "format": "date-time",
                  "description": "Gets or sets the section start date.",
                  "type": "string"
                },
                "SectionEndDate": {
                  "format": "date-time",
                  "description": "Gets or sets the section end date.",
                  "type": "string"
                },
                "MHASection": {
                  "description": "Gets or sets the Master of Healthcare Administration section.",
                  "type": "string"
                },
                "LeaveStartDate": {
                  "format": "date-time",
                  "description": "Gets or sets the leave start date.",
                  "type": "string"
                },
                "LeaveEndDate": {
                  "format": "date-time",
                  "description": "Gets or sets the leave end date.",
                  "type": "string"
                },
                "LeaveStatus": {
                  "description": "Gets or sets the leave status.",
                  "type": "string"
                },
                "TenancyDescription": {
                  "description": "Gets or sets the tenancy description.",
                  "type": "string"
                }
              }
            },
            "Count": {
              "format": "int32",
              "description": "Gets or sets the count.",
              "type": "integer"
            },
            "HistoricMHAMinus12MonthsCount": {
              "format": "int32",
              "description": "Gets or sets the count minus 12 .",
              "type": "integer"
            }
          }
        },
        "EIP": {
          "description": "Gets or sets the eip.",
          "type": "object",
          "properties": {
            "EIPStartDate": {
              "format": "date-time",
              "description": "Gets or sets the Emerging Infections Program start date.",
              "type": "string"
            },
            "ActiveEIP": {
              "description": "Gets or sets the active Emerging Infections Program.",
              "type": "string"
            },
            "MainContact": {
              "description": "Gets or sets the main contact.",
              "type": "string"
            },
            "ContactNumber": {
              "description": "Gets or sets the contact number.",
              "type": "string"
            },
            "CarePlan": {
              "description": "Gets or sets the care plan.",
              "type": "string"
            },
            "TenancyDescription": {
              "description": "Gets or sets the tenancy description.",
              "type": "string"
            }
          }
        },
        "RiskAssessment": {
          "description": "Gets or sets the risk assessment.",
          "type": "object",
          "properties": {
            "DateOfAssessment": {
              "format": "date-time",
              "description": "Gets or sets the date of assessment.",
              "type": "string"
            },
            "ClinicalSetting": {
              "description": "Gets or sets the clinical setting.",
              "type": "string"
            },
            "Assessor": {
              "description": "Gets or sets the assessor.",
              "type": "string"
            },
            "Role": {
              "description": "Gets or sets the role.",
              "type": "string"
            },
            "TenancyDescription": {
              "description": "Gets or sets the tenancy description.",
              "type": "string"
            }
          }
        }
      }
    },
    "Detail": {
      "description": "Gets or sets the detail.",
      "type": "object",
      "properties": {
        "Contacts": {
          "description": "Gets or sets the contacts.",
          "type": "array",
          "items": {
            "description": "The contact.",
            "type": "object",
            "properties": {
              "Rank": {
                "description": "Gets or sets the rank.",
                "type": "string"
              },
              "ContactType": {
                "description": "Gets or sets the type of the contact.",
                "type": "string"
              },
              "Relation": {
                "description": "Gets or sets the relation.",
                "type": "string"
              },
              "Title": {
                "description": "Gets or sets the title.",
                "type": "string"
              },
              "PreferredContactMethod": {
                "description": "Gets or sets the Preferred Contact Method.",
                "type": "string"
              },
              "Email": {
                "description": "Gets or sets the Email.",
                "type": "string"
              },
              "MobilePhone": {
                "description": "Gets or sets the Mobile Phone.",
                "type": "string"
              },
              "Surname": {
                "description": "Gets or sets the surname.",
                "type": "string"
              },
              "GivenName": {
                "description": "Gets or sets the name of the given.",
                "type": "string"
              },
              "AddressLine1": {
                "description": "Gets or sets the address line1.",
                "type": "string"
              },
              "AddressLine2": {
                "description": "Gets or sets the address line2.",
                "type": "string"
              },
              "AddressLine3": {
                "description": "Gets or sets the address line3.",
                "type": "string"
              },
              "AddressLine4": {
                "description": "Gets or sets the address line4.",
                "type": "string"
              },
              "AddressLine5": {
                "description": "Gets or sets the address line5.",
                "type": "string"
              },
              "PostCode": {
                "description": "Gets or sets the post code.",
                "type": "string"
              },
              "Country": {
                "description": "Gets or sets the country.",
                "type": "string"
              },
              "MainPhone": {
                "description": "Gets or sets the main phone.",
                "type": "string"
              },
              "OtherPhone": {
                "description": "Gets or sets the other phone.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "Diagnoses": {
          "description": "Gets or sets the diagnoses.",
          "type": "array",
          "items": {
            "description": "The diagnosis.",
            "type": "object",
            "properties": {
              "DiagnosisDate": {
                "format": "date-time",
                "description": "Gets or sets the diagnosis date.",
                "type": "string"
              },
              "ICD10Code": {
                "description": "Gets or sets the ic D10 code.",
                "type": "string"
              },
              "SnomedCTCode": {
                "description": "Gets or sets the snomed ct code.",
                "type": "string"
              },
              "DiagnosisDescription": {
                "description": "Gets or sets the diagnosis description.",
                "type": "string"
              },
              "ConfirmedBy": {
                "description": "Gets or sets the confirmed by.",
                "type": "string"
              },
              "Comments": {
                "description": "Gets or sets the comments.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "CPA": {
          "description": "Gets or sets the cpa.",
          "type": "object",
          "properties": {
            "Active": {
              "description": "Gets or sets the active.",
              "type": "array",
              "items": {
                "description": "The Care Programme Approach episode.",
                "type": "object",
                "properties": {
                  "Active": {
                    "description": "Gets or sets the active.",
                    "type": "string"
                  },
                  "StartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the start date.",
                    "type": "string"
                  },
                  "EndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the end date.",
                    "type": "string"
                  },
                  "Details": {
                    "description": "Gets or sets the details.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            },
            "HistoricMinus12Months": {
              "description": "Gets or sets the historic minus12 months.",
              "type": "array",
              "items": {
                "description": "The Care Programme Approach episode.",
                "type": "object",
                "properties": {
                  "Active": {
                    "description": "Gets or sets the active.",
                    "type": "string"
                  },
                  "StartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the start date.",
                    "type": "string"
                  },
                  "EndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the end date.",
                    "type": "string"
                  },
                  "Details": {
                    "description": "Gets or sets the details.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            },
            "AllHistoric": {
              "description": "Gets or sets all historic.",
              "type": "array",
              "items": {
                "description": "The Care Programme Approach episode.",
                "type": "object",
                "properties": {
                  "Active": {
                    "description": "Gets or sets the active.",
                    "type": "string"
                  },
                  "StartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the start date.",
                    "type": "string"
                  },
                  "EndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the end date.",
                    "type": "string"
                  },
                  "Details": {
                    "description": "Gets or sets the details.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "CPALevel": {
          "description": "Gets or sets the Cardiopulmonary arrest level.",
          "type": "array",
          "items": {
            "description": "The Care Programme Approach level.",
            "type": "object",
            "properties": {
              "CPALevel": {
                "description": "Gets or sets the Care Programme Approach level.",
                "type": "string"
              },
              "NextDateOfReview": {
                "format": "date-time",
                "description": "Gets or sets the next date of review.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "MHA": {
          "description": "Gets or sets the mha.",
          "type": "object",
          "properties": {
            "Active": {
              "description": "Gets or sets the active.",
              "type": "array",
              "items": {
                "description": "The act clas.",
                "type": "object",
                "properties": {
                  "SectionStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section start date.",
                    "type": "string"
                  },
                  "SectionEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section end date.",
                    "type": "string"
                  },
                  "MHASection": {
                    "description": "Gets or sets the Master of Healthcare Administration section.",
                    "type": "string"
                  },
                  "LeaveStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave start date.",
                    "type": "string"
                  },
                  "LeaveEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave end date.",
                    "type": "string"
                  },
                  "LeaveStatus": {
                    "description": "Gets or sets the leave status.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            },
            "HistoricMinus12Months": {
              "description": "Gets or sets the historic minus12 months.",
              "type": "array",
              "items": {
                "description": "The act clas.",
                "type": "object",
                "properties": {
                  "SectionStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section start date.",
                    "type": "string"
                  },
                  "SectionEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section end date.",
                    "type": "string"
                  },
                  "MHASection": {
                    "description": "Gets or sets the Master of Healthcare Administration section.",
                    "type": "string"
                  },
                  "LeaveStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave start date.",
                    "type": "string"
                  },
                  "LeaveEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave end date.",
                    "type": "string"
                  },
                  "LeaveStatus": {
                    "description": "Gets or sets the leave status.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            },
            "AllHistoric": {
              "description": "Gets or sets all historic.",
              "type": "array",
              "items": {
                "description": "The act clas.",
                "type": "object",
                "properties": {
                  "SectionStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section start date.",
                    "type": "string"
                  },
                  "SectionEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section end date.",
                    "type": "string"
                  },
                  "MHASection": {
                    "description": "Gets or sets the Master of Healthcare Administration section.",
                    "type": "string"
                  },
                  "LeaveStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave start date.",
                    "type": "string"
                  },
                  "LeaveEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave end date.",
                    "type": "string"
                  },
                  "LeaveStatus": {
                    "description": "Gets or sets the leave status.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "EIP": {
          "description": "Gets or sets the eip.",
          "type": "array",
          "items": {
            "description": "The Emerging Infections Program.",
            "type": "object",
            "properties": {
              "EIPStartDate": {
                "format": "date-time",
                "description": "Gets or sets the Emerging Infections Program start date.",
                "type": "string"
              },
              "ActiveEIP": {
                "description": "Gets or sets the active Emerging Infections Program.",
                "type": "string"
              },
              "MainContact": {
                "description": "Gets or sets the main contact.",
                "type": "string"
              },
              "ContactNumber": {
                "description": "Gets or sets the contact number.",
                "type": "string"
              },
              "CarePlan": {
                "description": "Gets or sets the care plan.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "RiskAssessment": {
          "description": "Gets or sets the risk assessment.",
          "type": "array",
          "items": {
            "description": "The Risk assessment detail.",
            "type": "object",
            "properties": {
              "RiskScores": {
                "description": "Gets or sets the risk scores.",
                "type": "array",
                "items": {
                  "description": "The Risk score.",
                  "type": "object",
                  "properties": {
                    "RiskScoreID": {
                      "description": "Gets or sets the risk score identifier.",
                      "type": "string"
                    },
                    "RiskDescription": {
                      "description": "Gets or sets the risk description.",
                      "type": "string"
                    },
                    "RiskStatusValue": {
                      "description": "Gets or sets the risk status value.",
                      "type": "string"
                    },
                    "TenancyDescription": {
                      "description": "Gets or sets the tenancy description.",
                      "type": "string"
                    }
                  }
                }
              },
              "RiskPlans": {
                "description": "Gets or sets the risk plans.",
                "type": "array",
                "items": {
                  "description": "The risk plan.",
                  "type": "object",
                  "properties": {
                    "Field1Description": {
                      "description": "Gets or sets the field1 description.",
                      "type": "string"
                    },
                    "Field1Value": {
                      "description": "Gets or sets the field1 value.",
                      "type": "string"
                    },
                    "TenancyDescription": {
                      "description": "Gets or sets the tenancy description.",
                      "type": "string"
                    }
                  }
                }
              },
              "DateOfAssessment": {
                "format": "date-time",
                "description": "Gets or sets the date of assessment.",
                "type": "string"
              },
              "ClinicalSetting": {
                "description": "Gets or sets the clinical setting.",
                "type": "string"
              },
              "Assessor": {
                "description": "Gets or sets the assessor.",
                "type": "string"
              },
              "Role": {
                "description": "Gets or sets the role.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "Medications": {
          "description": "Gets or sets the medications.",
          "type": "array",
          "items": {
            "description": "The medication.",
            "type": "object",
            "properties": {
              "LastIssueDate": {
                "format": "date-time",
                "description": "Gets or sets the last issue date.",
                "type": "string"
              },
              "Name": {
                "description": "Gets or sets the name.",
                "type": "string"
              },
              "Formulation": {
                "description": "Gets or sets the formulation.",
                "type": "string"
              },
              "Dosage": {
                "description": "Gets or sets the dosage.",
                "type": "string"
              },
              "Route": {
                "description": "Gets or sets the route.",
                "type": "string"
              },
              "Frequency": {
                "description": "Gets or sets the frequency.",
                "type": "string"
              },
              "Comments": {
                "description": "Gets or sets the comments.",
                "type": "string"
              },
              "IssuedBy": {
                "description": "Gets or sets the issued by.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "Immunisations": {
          "description": "Gets or sets the immunisations.",
          "type": "array",
          "items": {
            "description": "The immunisation model.",
            "type": "object",
            "properties": {
              "AdministeredDate": {
                "format": "date-time",
                "description": "Gets or sets the administered date.",
                "type": "string"
              },
              "Immunisation": {
                "description": "Gets or sets the immunisation.",
                "type": "string"
              },
              "Part": {
                "description": "Gets or sets the part.",
                "type": "string"
              },
              "Outcome": {
                "description": "Gets or sets the outcome.",
                "type": "string"
              },
              "Location": {
                "description": "Gets or sets the location.",
                "type": "string"
              },
              "BodySite": {
                "description": "Gets or sets the body site.",
                "type": "string"
              },
              "AdminMethod": {
                "description": "Gets or sets the admin method.",
                "type": "string"
              },
              "AdministeredBy": {
                "description": "Gets or sets the administered by.",
                "type": "string"
              },
              "ContactNumber": {
                "description": "Gets or sets the contact number.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "ClinicalNotes": {
          "description": "Gets or sets the clinical notes.",
          "type": "array",
          "items": {
            "description": "The note.",
            "type": "object",
            "properties": {
              "CreateTime": {
                "format": "date-time",
                "description": "Gets or sets the create time.",
                "type": "string"
              },
              "Order": {
                "description": "Gets or sets the order.",
                "type": "string"
              },
              "Notes": {
                "description": "Gets or sets the notes.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
<RIOCommunity.Models.CommunityAndMentalHealthSummary>
  <Summary>
    <NextOfKin>
      <NextOfKin>
        <Rank>string</Rank>
        <ContactType>string</ContactType>
        <Relation>string</Relation>
        <Title>string</Title>
        <PreferredContactMethod>string</PreferredContactMethod>
        <Email>string</Email>
        <MobilePhone>string</MobilePhone>
        <Surname>string</Surname>
        <GivenName>string</GivenName>
        <AddressLine1>string</AddressLine1>
        <AddressLine2>string</AddressLine2>
        <AddressLine3>string</AddressLine3>
        <AddressLine4>string</AddressLine4>
        <AddressLine5>string</AddressLine5>
        <PostCode>string</PostCode>
        <Country>string</Country>
        <MainPhone>string</MainPhone>
        <OtherPhone>string</OtherPhone>
        <TenancyDescription>string</TenancyDescription>
      </NextOfKin>
      <Count>0</Count>
    </NextOfKin>
    <Diagnosis>
      <Diagnosis>
        <DiagnosisDate>string</DiagnosisDate>
        <ICD10Code>string</ICD10Code>
        <SnomedCTCode>string</SnomedCTCode>
        <DiagnosisDescription>string</DiagnosisDescription>
        <ConfirmedBy>string</ConfirmedBy>
        <Comments>string</Comments>
        <TenancyDescription>string</TenancyDescription>
      </Diagnosis>
      <Count>0</Count>
    </Diagnosis>
    <CPA>
      <CPA>
        <Active>string</Active>
        <StartDate>string</StartDate>
        <EndDate>string</EndDate>
        <Details>string</Details>
        <TenancyDescription>string</TenancyDescription>
      </CPA>
      <HistoricCPACount>0</HistoricCPACount>
      <HistoricCPAMinus12MonthsCount>0</HistoricCPAMinus12MonthsCount>
    </CPA>
    <MHA>
      <MHA>
        <SectionStartDate>string</SectionStartDate>
        <SectionEndDate>string</SectionEndDate>
        <MHASection>string</MHASection>
        <LeaveStartDate>string</LeaveStartDate>
        <LeaveEndDate>string</LeaveEndDate>
        <LeaveStatus>string</LeaveStatus>
        <TenancyDescription>string</TenancyDescription>
      </MHA>
      <Count>0</Count>
      <HistoricMHAMinus12MonthsCount>0</HistoricMHAMinus12MonthsCount>
    </MHA>
    <EIP>
      <EIPStartDate>string</EIPStartDate>
      <ActiveEIP>string</ActiveEIP>
      <MainContact>string</MainContact>
      <ContactNumber>string</ContactNumber>
      <CarePlan>string</CarePlan>
      <TenancyDescription>string</TenancyDescription>
    </EIP>
    <RiskAssessment>
      <DateOfAssessment>string</DateOfAssessment>
      <ClinicalSetting>string</ClinicalSetting>
      <Assessor>string</Assessor>
      <Role>string</Role>
      <TenancyDescription>string</TenancyDescription>
    </RiskAssessment>
  </Summary>
  <Detail>
    <Contacts>
      <Rank>string</Rank>
      <ContactType>string</ContactType>
      <Relation>string</Relation>
      <Title>string</Title>
      <PreferredContactMethod>string</PreferredContactMethod>
      <Email>string</Email>
      <MobilePhone>string</MobilePhone>
      <Surname>string</Surname>
      <GivenName>string</GivenName>
      <AddressLine1>string</AddressLine1>
      <AddressLine2>string</AddressLine2>
      <AddressLine3>string</AddressLine3>
      <AddressLine4>string</AddressLine4>
      <AddressLine5>string</AddressLine5>
      <PostCode>string</PostCode>
      <Country>string</Country>
      <MainPhone>string</MainPhone>
      <OtherPhone>string</OtherPhone>
      <TenancyDescription>string</TenancyDescription>
    </Contacts>
    <Diagnoses>
      <DiagnosisDate>string</DiagnosisDate>
      <ICD10Code>string</ICD10Code>
      <SnomedCTCode>string</SnomedCTCode>
      <DiagnosisDescription>string</DiagnosisDescription>
      <ConfirmedBy>string</ConfirmedBy>
      <Comments>string</Comments>
      <TenancyDescription>string</TenancyDescription>
    </Diagnoses>
    <CPA>
      <Active>
        <Active>string</Active>
        <StartDate>string</StartDate>
        <EndDate>string</EndDate>
        <Details>string</Details>
        <TenancyDescription>string</TenancyDescription>
      </Active>
      <HistoricMinus12Months>
        <Active>string</Active>
        <StartDate>string</StartDate>
        <EndDate>string</EndDate>
        <Details>string</Details>
        <TenancyDescription>string</TenancyDescription>
      </HistoricMinus12Months>
      <AllHistoric>
        <Active>string</Active>
        <StartDate>string</StartDate>
        <EndDate>string</EndDate>
        <Details>string</Details>
        <TenancyDescription>string</TenancyDescription>
      </AllHistoric>
    </CPA>
    <CPALevel>
      <CPALevel>string</CPALevel>
      <NextDateOfReview>string</NextDateOfReview>
      <TenancyDescription>string</TenancyDescription>
    </CPALevel>
    <MHA>
      <Active>
        <SectionStartDate>string</SectionStartDate>
        <SectionEndDate>string</SectionEndDate>
        <MHASection>string</MHASection>
        <LeaveStartDate>string</LeaveStartDate>
        <LeaveEndDate>string</LeaveEndDate>
        <LeaveStatus>string</LeaveStatus>
        <TenancyDescription>string</TenancyDescription>
      </Active>
      <HistoricMinus12Months>
        <SectionStartDate>string</SectionStartDate>
        <SectionEndDate>string</SectionEndDate>
        <MHASection>string</MHASection>
        <LeaveStartDate>string</LeaveStartDate>
        <LeaveEndDate>string</LeaveEndDate>
        <LeaveStatus>string</LeaveStatus>
        <TenancyDescription>string</TenancyDescription>
      </HistoricMinus12Months>
      <AllHistoric>
        <SectionStartDate>string</SectionStartDate>
        <SectionEndDate>string</SectionEndDate>
        <MHASection>string</MHASection>
        <LeaveStartDate>string</LeaveStartDate>
        <LeaveEndDate>string</LeaveEndDate>
        <LeaveStatus>string</LeaveStatus>
        <TenancyDescription>string</TenancyDescription>
      </AllHistoric>
    </MHA>
    <EIP>
      <EIPStartDate>string</EIPStartDate>
      <ActiveEIP>string</ActiveEIP>
      <MainContact>string</MainContact>
      <ContactNumber>string</ContactNumber>
      <CarePlan>string</CarePlan>
      <TenancyDescription>string</TenancyDescription>
    </EIP>
    <RiskAssessment>
      <RiskScores>
        <RiskScoreID>string</RiskScoreID>
        <RiskDescription>string</RiskDescription>
        <RiskStatusValue>string</RiskStatusValue>
        <TenancyDescription>string</TenancyDescription>
      </RiskScores>
      <RiskPlans>
        <Field1Description>string</Field1Description>
        <Field1Value>string</Field1Value>
        <TenancyDescription>string</TenancyDescription>
      </RiskPlans>
      <DateOfAssessment>string</DateOfAssessment>
      <ClinicalSetting>string</ClinicalSetting>
      <Assessor>string</Assessor>
      <Role>string</Role>
      <TenancyDescription>string</TenancyDescription>
    </RiskAssessment>
    <Medications>
      <LastIssueDate>string</LastIssueDate>
      <Name>string</Name>
      <Formulation>string</Formulation>
      <Dosage>string</Dosage>
      <Route>string</Route>
      <Frequency>string</Frequency>
      <Comments>string</Comments>
      <IssuedBy>string</IssuedBy>
      <TenancyDescription>string</TenancyDescription>
    </Medications>
    <Immunisations>
      <AdministeredDate>string</AdministeredDate>
      <Immunisation>string</Immunisation>
      <Part>string</Part>
      <Outcome>string</Outcome>
      <Location>string</Location>
      <BodySite>string</BodySite>
      <AdminMethod>string</AdminMethod>
      <AdministeredBy>string</AdministeredBy>
      <ContactNumber>string</ContactNumber>
      <TenancyDescription>string</TenancyDescription>
    </Immunisations>
    <ClinicalNotes>
      <CreateTime>string</CreateTime>
      <Order>string</Order>
      <Notes>string</Notes>
      <TenancyDescription>string</TenancyDescription>
    </ClinicalNotes>
  </Detail>
</RIOCommunity.Models.CommunityAndMentalHealthSummary>
{
  "description": "The community and mental health summary.",
  "type": "object",
  "properties": {
    "Summary": {
      "description": "Gets or sets the summary.",
      "type": "object",
      "properties": {
        "NextOfKin": {
          "description": "Gets or sets the next of kin.",
          "type": "object",
          "properties": {
            "NextOfKin": {
              "description": "Gets or sets the next of kin.",
              "type": "object",
              "properties": {
                "Rank": {
                  "description": "Gets or sets the rank.",
                  "type": "string"
                },
                "ContactType": {
                  "description": "Gets or sets the type of the contact.",
                  "type": "string"
                },
                "Relation": {
                  "description": "Gets or sets the relation.",
                  "type": "string"
                },
                "Title": {
                  "description": "Gets or sets the title.",
                  "type": "string"
                },
                "PreferredContactMethod": {
                  "description": "Gets or sets the Preferred Contact Method.",
                  "type": "string"
                },
                "Email": {
                  "description": "Gets or sets the Email.",
                  "type": "string"
                },
                "MobilePhone": {
                  "description": "Gets or sets the Mobile Phone.",
                  "type": "string"
                },
                "Surname": {
                  "description": "Gets or sets the surname.",
                  "type": "string"
                },
                "GivenName": {
                  "description": "Gets or sets the name of the given.",
                  "type": "string"
                },
                "AddressLine1": {
                  "description": "Gets or sets the address line1.",
                  "type": "string"
                },
                "AddressLine2": {
                  "description": "Gets or sets the address line2.",
                  "type": "string"
                },
                "AddressLine3": {
                  "description": "Gets or sets the address line3.",
                  "type": "string"
                },
                "AddressLine4": {
                  "description": "Gets or sets the address line4.",
                  "type": "string"
                },
                "AddressLine5": {
                  "description": "Gets or sets the address line5.",
                  "type": "string"
                },
                "PostCode": {
                  "description": "Gets or sets the post code.",
                  "type": "string"
                },
                "Country": {
                  "description": "Gets or sets the country.",
                  "type": "string"
                },
                "MainPhone": {
                  "description": "Gets or sets the main phone.",
                  "type": "string"
                },
                "OtherPhone": {
                  "description": "Gets or sets the other phone.",
                  "type": "string"
                },
                "TenancyDescription": {
                  "description": "Gets or sets the tenancy description.",
                  "type": "string"
                }
              }
            },
            "Count": {
              "format": "int32",
              "description": "Gets or sets the count.",
              "type": "integer"
            }
          }
        },
        "Diagnosis": {
          "description": "Gets or sets the diagnosis.",
          "type": "object",
          "properties": {
            "Diagnosis": {
              "description": "Gets or sets the diagnosis.",
              "type": "object",
              "properties": {
                "DiagnosisDate": {
                  "format": "date-time",
                  "description": "Gets or sets the diagnosis date.",
                  "type": "string"
                },
                "ICD10Code": {
                  "description": "Gets or sets the ic D10 code.",
                  "type": "string"
                },
                "SnomedCTCode": {
                  "description": "Gets or sets the snomed ct code.",
                  "type": "string"
                },
                "DiagnosisDescription": {
                  "description": "Gets or sets the diagnosis description.",
                  "type": "string"
                },
                "ConfirmedBy": {
                  "description": "Gets or sets the confirmed by.",
                  "type": "string"
                },
                "Comments": {
                  "description": "Gets or sets the comments.",
                  "type": "string"
                },
                "TenancyDescription": {
                  "description": "Gets or sets the tenancy description.",
                  "type": "string"
                }
              }
            },
            "Count": {
              "format": "int32",
              "description": "Gets or sets the count.",
              "type": "integer"
            }
          }
        },
        "CPA": {
          "description": "Gets or sets the cpa.",
          "type": "object",
          "properties": {
            "CPA": {
              "description": "Gets or sets the Care Programme Approach.",
              "type": "object",
              "properties": {
                "Active": {
                  "description": "Gets or sets the active.",
                  "type": "string"
                },
                "StartDate": {
                  "format": "date-time",
                  "description": "Gets or sets the start date.",
                  "type": "string"
                },
                "EndDate": {
                  "format": "date-time",
                  "description": "Gets or sets the end date.",
                  "type": "string"
                },
                "Details": {
                  "description": "Gets or sets the details.",
                  "type": "string"
                },
                "TenancyDescription": {
                  "description": "Gets or sets the tenancy description.",
                  "type": "string"
                }
              }
            },
            "HistoricCPACount": {
              "format": "int32",
              "description": "Gets or sets the historic Care Programme Approach count.",
              "type": "integer"
            },
            "HistoricCPAMinus12MonthsCount": {
              "format": "int32",
              "description": "Gets or sets the historic Care Programme Approach closed in the last 12 months count.",
              "type": "integer"
            }
          }
        },
        "MHA": {
          "description": "Gets or sets the mha.",
          "type": "object",
          "properties": {
            "MHA": {
              "description": "Gets or sets the Master of Healthcare Administration.",
              "type": "object",
              "properties": {
                "SectionStartDate": {
                  "format": "date-time",
                  "description": "Gets or sets the section start date.",
                  "type": "string"
                },
                "SectionEndDate": {
                  "format": "date-time",
                  "description": "Gets or sets the section end date.",
                  "type": "string"
                },
                "MHASection": {
                  "description": "Gets or sets the Master of Healthcare Administration section.",
                  "type": "string"
                },
                "LeaveStartDate": {
                  "format": "date-time",
                  "description": "Gets or sets the leave start date.",
                  "type": "string"
                },
                "LeaveEndDate": {
                  "format": "date-time",
                  "description": "Gets or sets the leave end date.",
                  "type": "string"
                },
                "LeaveStatus": {
                  "description": "Gets or sets the leave status.",
                  "type": "string"
                },
                "TenancyDescription": {
                  "description": "Gets or sets the tenancy description.",
                  "type": "string"
                }
              }
            },
            "Count": {
              "format": "int32",
              "description": "Gets or sets the count.",
              "type": "integer"
            },
            "HistoricMHAMinus12MonthsCount": {
              "format": "int32",
              "description": "Gets or sets the count minus 12 .",
              "type": "integer"
            }
          }
        },
        "EIP": {
          "description": "Gets or sets the eip.",
          "type": "object",
          "properties": {
            "EIPStartDate": {
              "format": "date-time",
              "description": "Gets or sets the Emerging Infections Program start date.",
              "type": "string"
            },
            "ActiveEIP": {
              "description": "Gets or sets the active Emerging Infections Program.",
              "type": "string"
            },
            "MainContact": {
              "description": "Gets or sets the main contact.",
              "type": "string"
            },
            "ContactNumber": {
              "description": "Gets or sets the contact number.",
              "type": "string"
            },
            "CarePlan": {
              "description": "Gets or sets the care plan.",
              "type": "string"
            },
            "TenancyDescription": {
              "description": "Gets or sets the tenancy description.",
              "type": "string"
            }
          }
        },
        "RiskAssessment": {
          "description": "Gets or sets the risk assessment.",
          "type": "object",
          "properties": {
            "DateOfAssessment": {
              "format": "date-time",
              "description": "Gets or sets the date of assessment.",
              "type": "string"
            },
            "ClinicalSetting": {
              "description": "Gets or sets the clinical setting.",
              "type": "string"
            },
            "Assessor": {
              "description": "Gets or sets the assessor.",
              "type": "string"
            },
            "Role": {
              "description": "Gets or sets the role.",
              "type": "string"
            },
            "TenancyDescription": {
              "description": "Gets or sets the tenancy description.",
              "type": "string"
            }
          }
        }
      }
    },
    "Detail": {
      "description": "Gets or sets the detail.",
      "type": "object",
      "properties": {
        "Contacts": {
          "description": "Gets or sets the contacts.",
          "type": "array",
          "items": {
            "description": "The contact.",
            "type": "object",
            "properties": {
              "Rank": {
                "description": "Gets or sets the rank.",
                "type": "string"
              },
              "ContactType": {
                "description": "Gets or sets the type of the contact.",
                "type": "string"
              },
              "Relation": {
                "description": "Gets or sets the relation.",
                "type": "string"
              },
              "Title": {
                "description": "Gets or sets the title.",
                "type": "string"
              },
              "PreferredContactMethod": {
                "description": "Gets or sets the Preferred Contact Method.",
                "type": "string"
              },
              "Email": {
                "description": "Gets or sets the Email.",
                "type": "string"
              },
              "MobilePhone": {
                "description": "Gets or sets the Mobile Phone.",
                "type": "string"
              },
              "Surname": {
                "description": "Gets or sets the surname.",
                "type": "string"
              },
              "GivenName": {
                "description": "Gets or sets the name of the given.",
                "type": "string"
              },
              "AddressLine1": {
                "description": "Gets or sets the address line1.",
                "type": "string"
              },
              "AddressLine2": {
                "description": "Gets or sets the address line2.",
                "type": "string"
              },
              "AddressLine3": {
                "description": "Gets or sets the address line3.",
                "type": "string"
              },
              "AddressLine4": {
                "description": "Gets or sets the address line4.",
                "type": "string"
              },
              "AddressLine5": {
                "description": "Gets or sets the address line5.",
                "type": "string"
              },
              "PostCode": {
                "description": "Gets or sets the post code.",
                "type": "string"
              },
              "Country": {
                "description": "Gets or sets the country.",
                "type": "string"
              },
              "MainPhone": {
                "description": "Gets or sets the main phone.",
                "type": "string"
              },
              "OtherPhone": {
                "description": "Gets or sets the other phone.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "Diagnoses": {
          "description": "Gets or sets the diagnoses.",
          "type": "array",
          "items": {
            "description": "The diagnosis.",
            "type": "object",
            "properties": {
              "DiagnosisDate": {
                "format": "date-time",
                "description": "Gets or sets the diagnosis date.",
                "type": "string"
              },
              "ICD10Code": {
                "description": "Gets or sets the ic D10 code.",
                "type": "string"
              },
              "SnomedCTCode": {
                "description": "Gets or sets the snomed ct code.",
                "type": "string"
              },
              "DiagnosisDescription": {
                "description": "Gets or sets the diagnosis description.",
                "type": "string"
              },
              "ConfirmedBy": {
                "description": "Gets or sets the confirmed by.",
                "type": "string"
              },
              "Comments": {
                "description": "Gets or sets the comments.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "CPA": {
          "description": "Gets or sets the cpa.",
          "type": "object",
          "properties": {
            "Active": {
              "description": "Gets or sets the active.",
              "type": "array",
              "items": {
                "description": "The Care Programme Approach episode.",
                "type": "object",
                "properties": {
                  "Active": {
                    "description": "Gets or sets the active.",
                    "type": "string"
                  },
                  "StartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the start date.",
                    "type": "string"
                  },
                  "EndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the end date.",
                    "type": "string"
                  },
                  "Details": {
                    "description": "Gets or sets the details.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            },
            "HistoricMinus12Months": {
              "description": "Gets or sets the historic minus12 months.",
              "type": "array",
              "items": {
                "description": "The Care Programme Approach episode.",
                "type": "object",
                "properties": {
                  "Active": {
                    "description": "Gets or sets the active.",
                    "type": "string"
                  },
                  "StartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the start date.",
                    "type": "string"
                  },
                  "EndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the end date.",
                    "type": "string"
                  },
                  "Details": {
                    "description": "Gets or sets the details.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            },
            "AllHistoric": {
              "description": "Gets or sets all historic.",
              "type": "array",
              "items": {
                "description": "The Care Programme Approach episode.",
                "type": "object",
                "properties": {
                  "Active": {
                    "description": "Gets or sets the active.",
                    "type": "string"
                  },
                  "StartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the start date.",
                    "type": "string"
                  },
                  "EndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the end date.",
                    "type": "string"
                  },
                  "Details": {
                    "description": "Gets or sets the details.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "CPALevel": {
          "description": "Gets or sets the Cardiopulmonary arrest level.",
          "type": "array",
          "items": {
            "description": "The Care Programme Approach level.",
            "type": "object",
            "properties": {
              "CPALevel": {
                "description": "Gets or sets the Care Programme Approach level.",
                "type": "string"
              },
              "NextDateOfReview": {
                "format": "date-time",
                "description": "Gets or sets the next date of review.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "MHA": {
          "description": "Gets or sets the mha.",
          "type": "object",
          "properties": {
            "Active": {
              "description": "Gets or sets the active.",
              "type": "array",
              "items": {
                "description": "The act clas.",
                "type": "object",
                "properties": {
                  "SectionStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section start date.",
                    "type": "string"
                  },
                  "SectionEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section end date.",
                    "type": "string"
                  },
                  "MHASection": {
                    "description": "Gets or sets the Master of Healthcare Administration section.",
                    "type": "string"
                  },
                  "LeaveStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave start date.",
                    "type": "string"
                  },
                  "LeaveEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave end date.",
                    "type": "string"
                  },
                  "LeaveStatus": {
                    "description": "Gets or sets the leave status.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            },
            "HistoricMinus12Months": {
              "description": "Gets or sets the historic minus12 months.",
              "type": "array",
              "items": {
                "description": "The act clas.",
                "type": "object",
                "properties": {
                  "SectionStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section start date.",
                    "type": "string"
                  },
                  "SectionEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section end date.",
                    "type": "string"
                  },
                  "MHASection": {
                    "description": "Gets or sets the Master of Healthcare Administration section.",
                    "type": "string"
                  },
                  "LeaveStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave start date.",
                    "type": "string"
                  },
                  "LeaveEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave end date.",
                    "type": "string"
                  },
                  "LeaveStatus": {
                    "description": "Gets or sets the leave status.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            },
            "AllHistoric": {
              "description": "Gets or sets all historic.",
              "type": "array",
              "items": {
                "description": "The act clas.",
                "type": "object",
                "properties": {
                  "SectionStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section start date.",
                    "type": "string"
                  },
                  "SectionEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section end date.",
                    "type": "string"
                  },
                  "MHASection": {
                    "description": "Gets or sets the Master of Healthcare Administration section.",
                    "type": "string"
                  },
                  "LeaveStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave start date.",
                    "type": "string"
                  },
                  "LeaveEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave end date.",
                    "type": "string"
                  },
                  "LeaveStatus": {
                    "description": "Gets or sets the leave status.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "EIP": {
          "description": "Gets or sets the eip.",
          "type": "array",
          "items": {
            "description": "The Emerging Infections Program.",
            "type": "object",
            "properties": {
              "EIPStartDate": {
                "format": "date-time",
                "description": "Gets or sets the Emerging Infections Program start date.",
                "type": "string"
              },
              "ActiveEIP": {
                "description": "Gets or sets the active Emerging Infections Program.",
                "type": "string"
              },
              "MainContact": {
                "description": "Gets or sets the main contact.",
                "type": "string"
              },
              "ContactNumber": {
                "description": "Gets or sets the contact number.",
                "type": "string"
              },
              "CarePlan": {
                "description": "Gets or sets the care plan.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "RiskAssessment": {
          "description": "Gets or sets the risk assessment.",
          "type": "array",
          "items": {
            "description": "The Risk assessment detail.",
            "type": "object",
            "properties": {
              "RiskScores": {
                "description": "Gets or sets the risk scores.",
                "type": "array",
                "items": {
                  "description": "The Risk score.",
                  "type": "object",
                  "properties": {
                    "RiskScoreID": {
                      "description": "Gets or sets the risk score identifier.",
                      "type": "string"
                    },
                    "RiskDescription": {
                      "description": "Gets or sets the risk description.",
                      "type": "string"
                    },
                    "RiskStatusValue": {
                      "description": "Gets or sets the risk status value.",
                      "type": "string"
                    },
                    "TenancyDescription": {
                      "description": "Gets or sets the tenancy description.",
                      "type": "string"
                    }
                  }
                }
              },
              "RiskPlans": {
                "description": "Gets or sets the risk plans.",
                "type": "array",
                "items": {
                  "description": "The risk plan.",
                  "type": "object",
                  "properties": {
                    "Field1Description": {
                      "description": "Gets or sets the field1 description.",
                      "type": "string"
                    },
                    "Field1Value": {
                      "description": "Gets or sets the field1 value.",
                      "type": "string"
                    },
                    "TenancyDescription": {
                      "description": "Gets or sets the tenancy description.",
                      "type": "string"
                    }
                  }
                }
              },
              "DateOfAssessment": {
                "format": "date-time",
                "description": "Gets or sets the date of assessment.",
                "type": "string"
              },
              "ClinicalSetting": {
                "description": "Gets or sets the clinical setting.",
                "type": "string"
              },
              "Assessor": {
                "description": "Gets or sets the assessor.",
                "type": "string"
              },
              "Role": {
                "description": "Gets or sets the role.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "Medications": {
          "description": "Gets or sets the medications.",
          "type": "array",
          "items": {
            "description": "The medication.",
            "type": "object",
            "properties": {
              "LastIssueDate": {
                "format": "date-time",
                "description": "Gets or sets the last issue date.",
                "type": "string"
              },
              "Name": {
                "description": "Gets or sets the name.",
                "type": "string"
              },
              "Formulation": {
                "description": "Gets or sets the formulation.",
                "type": "string"
              },
              "Dosage": {
                "description": "Gets or sets the dosage.",
                "type": "string"
              },
              "Route": {
                "description": "Gets or sets the route.",
                "type": "string"
              },
              "Frequency": {
                "description": "Gets or sets the frequency.",
                "type": "string"
              },
              "Comments": {
                "description": "Gets or sets the comments.",
                "type": "string"
              },
              "IssuedBy": {
                "description": "Gets or sets the issued by.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "Immunisations": {
          "description": "Gets or sets the immunisations.",
          "type": "array",
          "items": {
            "description": "The immunisation model.",
            "type": "object",
            "properties": {
              "AdministeredDate": {
                "format": "date-time",
                "description": "Gets or sets the administered date.",
                "type": "string"
              },
              "Immunisation": {
                "description": "Gets or sets the immunisation.",
                "type": "string"
              },
              "Part": {
                "description": "Gets or sets the part.",
                "type": "string"
              },
              "Outcome": {
                "description": "Gets or sets the outcome.",
                "type": "string"
              },
              "Location": {
                "description": "Gets or sets the location.",
                "type": "string"
              },
              "BodySite": {
                "description": "Gets or sets the body site.",
                "type": "string"
              },
              "AdminMethod": {
                "description": "Gets or sets the admin method.",
                "type": "string"
              },
              "AdministeredBy": {
                "description": "Gets or sets the administered by.",
                "type": "string"
              },
              "ContactNumber": {
                "description": "Gets or sets the contact number.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "ClinicalNotes": {
          "description": "Gets or sets the clinical notes.",
          "type": "array",
          "items": {
            "description": "The note.",
            "type": "object",
            "properties": {
              "CreateTime": {
                "format": "date-time",
                "description": "Gets or sets the create time.",
                "type": "string"
              },
              "Order": {
                "description": "Gets or sets the order.",
                "type": "string"
              },
              "Notes": {
                "description": "Gets or sets the notes.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
<RIOCommunity.Models.CommunityAndMentalHealthSummary>
  <Summary>
    <NextOfKin>
      <NextOfKin>
        <Rank>string</Rank>
        <ContactType>string</ContactType>
        <Relation>string</Relation>
        <Title>string</Title>
        <PreferredContactMethod>string</PreferredContactMethod>
        <Email>string</Email>
        <MobilePhone>string</MobilePhone>
        <Surname>string</Surname>
        <GivenName>string</GivenName>
        <AddressLine1>string</AddressLine1>
        <AddressLine2>string</AddressLine2>
        <AddressLine3>string</AddressLine3>
        <AddressLine4>string</AddressLine4>
        <AddressLine5>string</AddressLine5>
        <PostCode>string</PostCode>
        <Country>string</Country>
        <MainPhone>string</MainPhone>
        <OtherPhone>string</OtherPhone>
        <TenancyDescription>string</TenancyDescription>
      </NextOfKin>
      <Count>0</Count>
    </NextOfKin>
    <Diagnosis>
      <Diagnosis>
        <DiagnosisDate>string</DiagnosisDate>
        <ICD10Code>string</ICD10Code>
        <SnomedCTCode>string</SnomedCTCode>
        <DiagnosisDescription>string</DiagnosisDescription>
        <ConfirmedBy>string</ConfirmedBy>
        <Comments>string</Comments>
        <TenancyDescription>string</TenancyDescription>
      </Diagnosis>
      <Count>0</Count>
    </Diagnosis>
    <CPA>
      <CPA>
        <Active>string</Active>
        <StartDate>string</StartDate>
        <EndDate>string</EndDate>
        <Details>string</Details>
        <TenancyDescription>string</TenancyDescription>
      </CPA>
      <HistoricCPACount>0</HistoricCPACount>
      <HistoricCPAMinus12MonthsCount>0</HistoricCPAMinus12MonthsCount>
    </CPA>
    <MHA>
      <MHA>
        <SectionStartDate>string</SectionStartDate>
        <SectionEndDate>string</SectionEndDate>
        <MHASection>string</MHASection>
        <LeaveStartDate>string</LeaveStartDate>
        <LeaveEndDate>string</LeaveEndDate>
        <LeaveStatus>string</LeaveStatus>
        <TenancyDescription>string</TenancyDescription>
      </MHA>
      <Count>0</Count>
      <HistoricMHAMinus12MonthsCount>0</HistoricMHAMinus12MonthsCount>
    </MHA>
    <EIP>
      <EIPStartDate>string</EIPStartDate>
      <ActiveEIP>string</ActiveEIP>
      <MainContact>string</MainContact>
      <ContactNumber>string</ContactNumber>
      <CarePlan>string</CarePlan>
      <TenancyDescription>string</TenancyDescription>
    </EIP>
    <RiskAssessment>
      <DateOfAssessment>string</DateOfAssessment>
      <ClinicalSetting>string</ClinicalSetting>
      <Assessor>string</Assessor>
      <Role>string</Role>
      <TenancyDescription>string</TenancyDescription>
    </RiskAssessment>
  </Summary>
  <Detail>
    <Contacts>
      <Rank>string</Rank>
      <ContactType>string</ContactType>
      <Relation>string</Relation>
      <Title>string</Title>
      <PreferredContactMethod>string</PreferredContactMethod>
      <Email>string</Email>
      <MobilePhone>string</MobilePhone>
      <Surname>string</Surname>
      <GivenName>string</GivenName>
      <AddressLine1>string</AddressLine1>
      <AddressLine2>string</AddressLine2>
      <AddressLine3>string</AddressLine3>
      <AddressLine4>string</AddressLine4>
      <AddressLine5>string</AddressLine5>
      <PostCode>string</PostCode>
      <Country>string</Country>
      <MainPhone>string</MainPhone>
      <OtherPhone>string</OtherPhone>
      <TenancyDescription>string</TenancyDescription>
    </Contacts>
    <Diagnoses>
      <DiagnosisDate>string</DiagnosisDate>
      <ICD10Code>string</ICD10Code>
      <SnomedCTCode>string</SnomedCTCode>
      <DiagnosisDescription>string</DiagnosisDescription>
      <ConfirmedBy>string</ConfirmedBy>
      <Comments>string</Comments>
      <TenancyDescription>string</TenancyDescription>
    </Diagnoses>
    <CPA>
      <Active>
        <Active>string</Active>
        <StartDate>string</StartDate>
        <EndDate>string</EndDate>
        <Details>string</Details>
        <TenancyDescription>string</TenancyDescription>
      </Active>
      <HistoricMinus12Months>
        <Active>string</Active>
        <StartDate>string</StartDate>
        <EndDate>string</EndDate>
        <Details>string</Details>
        <TenancyDescription>string</TenancyDescription>
      </HistoricMinus12Months>
      <AllHistoric>
        <Active>string</Active>
        <StartDate>string</StartDate>
        <EndDate>string</EndDate>
        <Details>string</Details>
        <TenancyDescription>string</TenancyDescription>
      </AllHistoric>
    </CPA>
    <CPALevel>
      <CPALevel>string</CPALevel>
      <NextDateOfReview>string</NextDateOfReview>
      <TenancyDescription>string</TenancyDescription>
    </CPALevel>
    <MHA>
      <Active>
        <SectionStartDate>string</SectionStartDate>
        <SectionEndDate>string</SectionEndDate>
        <MHASection>string</MHASection>
        <LeaveStartDate>string</LeaveStartDate>
        <LeaveEndDate>string</LeaveEndDate>
        <LeaveStatus>string</LeaveStatus>
        <TenancyDescription>string</TenancyDescription>
      </Active>
      <HistoricMinus12Months>
        <SectionStartDate>string</SectionStartDate>
        <SectionEndDate>string</SectionEndDate>
        <MHASection>string</MHASection>
        <LeaveStartDate>string</LeaveStartDate>
        <LeaveEndDate>string</LeaveEndDate>
        <LeaveStatus>string</LeaveStatus>
        <TenancyDescription>string</TenancyDescription>
      </HistoricMinus12Months>
      <AllHistoric>
        <SectionStartDate>string</SectionStartDate>
        <SectionEndDate>string</SectionEndDate>
        <MHASection>string</MHASection>
        <LeaveStartDate>string</LeaveStartDate>
        <LeaveEndDate>string</LeaveEndDate>
        <LeaveStatus>string</LeaveStatus>
        <TenancyDescription>string</TenancyDescription>
      </AllHistoric>
    </MHA>
    <EIP>
      <EIPStartDate>string</EIPStartDate>
      <ActiveEIP>string</ActiveEIP>
      <MainContact>string</MainContact>
      <ContactNumber>string</ContactNumber>
      <CarePlan>string</CarePlan>
      <TenancyDescription>string</TenancyDescription>
    </EIP>
    <RiskAssessment>
      <RiskScores>
        <RiskScoreID>string</RiskScoreID>
        <RiskDescription>string</RiskDescription>
        <RiskStatusValue>string</RiskStatusValue>
        <TenancyDescription>string</TenancyDescription>
      </RiskScores>
      <RiskPlans>
        <Field1Description>string</Field1Description>
        <Field1Value>string</Field1Value>
        <TenancyDescription>string</TenancyDescription>
      </RiskPlans>
      <DateOfAssessment>string</DateOfAssessment>
      <ClinicalSetting>string</ClinicalSetting>
      <Assessor>string</Assessor>
      <Role>string</Role>
      <TenancyDescription>string</TenancyDescription>
    </RiskAssessment>
    <Medications>
      <LastIssueDate>string</LastIssueDate>
      <Name>string</Name>
      <Formulation>string</Formulation>
      <Dosage>string</Dosage>
      <Route>string</Route>
      <Frequency>string</Frequency>
      <Comments>string</Comments>
      <IssuedBy>string</IssuedBy>
      <TenancyDescription>string</TenancyDescription>
    </Medications>
    <Immunisations>
      <AdministeredDate>string</AdministeredDate>
      <Immunisation>string</Immunisation>
      <Part>string</Part>
      <Outcome>string</Outcome>
      <Location>string</Location>
      <BodySite>string</BodySite>
      <AdminMethod>string</AdminMethod>
      <AdministeredBy>string</AdministeredBy>
      <ContactNumber>string</ContactNumber>
      <TenancyDescription>string</TenancyDescription>
    </Immunisations>
    <ClinicalNotes>
      <CreateTime>string</CreateTime>
      <Order>string</Order>
      <Notes>string</Notes>
      <TenancyDescription>string</TenancyDescription>
    </ClinicalNotes>
  </Detail>
</RIOCommunity.Models.CommunityAndMentalHealthSummary>
{
  "description": "The community and mental health summary.",
  "type": "object",
  "properties": {
    "Summary": {
      "description": "Gets or sets the summary.",
      "type": "object",
      "properties": {
        "NextOfKin": {
          "description": "Gets or sets the next of kin.",
          "type": "object",
          "properties": {
            "NextOfKin": {
              "description": "Gets or sets the next of kin.",
              "type": "object",
              "properties": {
                "Rank": {
                  "description": "Gets or sets the rank.",
                  "type": "string"
                },
                "ContactType": {
                  "description": "Gets or sets the type of the contact.",
                  "type": "string"
                },
                "Relation": {
                  "description": "Gets or sets the relation.",
                  "type": "string"
                },
                "Title": {
                  "description": "Gets or sets the title.",
                  "type": "string"
                },
                "PreferredContactMethod": {
                  "description": "Gets or sets the Preferred Contact Method.",
                  "type": "string"
                },
                "Email": {
                  "description": "Gets or sets the Email.",
                  "type": "string"
                },
                "MobilePhone": {
                  "description": "Gets or sets the Mobile Phone.",
                  "type": "string"
                },
                "Surname": {
                  "description": "Gets or sets the surname.",
                  "type": "string"
                },
                "GivenName": {
                  "description": "Gets or sets the name of the given.",
                  "type": "string"
                },
                "AddressLine1": {
                  "description": "Gets or sets the address line1.",
                  "type": "string"
                },
                "AddressLine2": {
                  "description": "Gets or sets the address line2.",
                  "type": "string"
                },
                "AddressLine3": {
                  "description": "Gets or sets the address line3.",
                  "type": "string"
                },
                "AddressLine4": {
                  "description": "Gets or sets the address line4.",
                  "type": "string"
                },
                "AddressLine5": {
                  "description": "Gets or sets the address line5.",
                  "type": "string"
                },
                "PostCode": {
                  "description": "Gets or sets the post code.",
                  "type": "string"
                },
                "Country": {
                  "description": "Gets or sets the country.",
                  "type": "string"
                },
                "MainPhone": {
                  "description": "Gets or sets the main phone.",
                  "type": "string"
                },
                "OtherPhone": {
                  "description": "Gets or sets the other phone.",
                  "type": "string"
                },
                "TenancyDescription": {
                  "description": "Gets or sets the tenancy description.",
                  "type": "string"
                }
              }
            },
            "Count": {
              "format": "int32",
              "description": "Gets or sets the count.",
              "type": "integer"
            }
          }
        },
        "Diagnosis": {
          "description": "Gets or sets the diagnosis.",
          "type": "object",
          "properties": {
            "Diagnosis": {
              "description": "Gets or sets the diagnosis.",
              "type": "object",
              "properties": {
                "DiagnosisDate": {
                  "format": "date-time",
                  "description": "Gets or sets the diagnosis date.",
                  "type": "string"
                },
                "ICD10Code": {
                  "description": "Gets or sets the ic D10 code.",
                  "type": "string"
                },
                "SnomedCTCode": {
                  "description": "Gets or sets the snomed ct code.",
                  "type": "string"
                },
                "DiagnosisDescription": {
                  "description": "Gets or sets the diagnosis description.",
                  "type": "string"
                },
                "ConfirmedBy": {
                  "description": "Gets or sets the confirmed by.",
                  "type": "string"
                },
                "Comments": {
                  "description": "Gets or sets the comments.",
                  "type": "string"
                },
                "TenancyDescription": {
                  "description": "Gets or sets the tenancy description.",
                  "type": "string"
                }
              }
            },
            "Count": {
              "format": "int32",
              "description": "Gets or sets the count.",
              "type": "integer"
            }
          }
        },
        "CPA": {
          "description": "Gets or sets the cpa.",
          "type": "object",
          "properties": {
            "CPA": {
              "description": "Gets or sets the Care Programme Approach.",
              "type": "object",
              "properties": {
                "Active": {
                  "description": "Gets or sets the active.",
                  "type": "string"
                },
                "StartDate": {
                  "format": "date-time",
                  "description": "Gets or sets the start date.",
                  "type": "string"
                },
                "EndDate": {
                  "format": "date-time",
                  "description": "Gets or sets the end date.",
                  "type": "string"
                },
                "Details": {
                  "description": "Gets or sets the details.",
                  "type": "string"
                },
                "TenancyDescription": {
                  "description": "Gets or sets the tenancy description.",
                  "type": "string"
                }
              }
            },
            "HistoricCPACount": {
              "format": "int32",
              "description": "Gets or sets the historic Care Programme Approach count.",
              "type": "integer"
            },
            "HistoricCPAMinus12MonthsCount": {
              "format": "int32",
              "description": "Gets or sets the historic Care Programme Approach closed in the last 12 months count.",
              "type": "integer"
            }
          }
        },
        "MHA": {
          "description": "Gets or sets the mha.",
          "type": "object",
          "properties": {
            "MHA": {
              "description": "Gets or sets the Master of Healthcare Administration.",
              "type": "object",
              "properties": {
                "SectionStartDate": {
                  "format": "date-time",
                  "description": "Gets or sets the section start date.",
                  "type": "string"
                },
                "SectionEndDate": {
                  "format": "date-time",
                  "description": "Gets or sets the section end date.",
                  "type": "string"
                },
                "MHASection": {
                  "description": "Gets or sets the Master of Healthcare Administration section.",
                  "type": "string"
                },
                "LeaveStartDate": {
                  "format": "date-time",
                  "description": "Gets or sets the leave start date.",
                  "type": "string"
                },
                "LeaveEndDate": {
                  "format": "date-time",
                  "description": "Gets or sets the leave end date.",
                  "type": "string"
                },
                "LeaveStatus": {
                  "description": "Gets or sets the leave status.",
                  "type": "string"
                },
                "TenancyDescription": {
                  "description": "Gets or sets the tenancy description.",
                  "type": "string"
                }
              }
            },
            "Count": {
              "format": "int32",
              "description": "Gets or sets the count.",
              "type": "integer"
            },
            "HistoricMHAMinus12MonthsCount": {
              "format": "int32",
              "description": "Gets or sets the count minus 12 .",
              "type": "integer"
            }
          }
        },
        "EIP": {
          "description": "Gets or sets the eip.",
          "type": "object",
          "properties": {
            "EIPStartDate": {
              "format": "date-time",
              "description": "Gets or sets the Emerging Infections Program start date.",
              "type": "string"
            },
            "ActiveEIP": {
              "description": "Gets or sets the active Emerging Infections Program.",
              "type": "string"
            },
            "MainContact": {
              "description": "Gets or sets the main contact.",
              "type": "string"
            },
            "ContactNumber": {
              "description": "Gets or sets the contact number.",
              "type": "string"
            },
            "CarePlan": {
              "description": "Gets or sets the care plan.",
              "type": "string"
            },
            "TenancyDescription": {
              "description": "Gets or sets the tenancy description.",
              "type": "string"
            }
          }
        },
        "RiskAssessment": {
          "description": "Gets or sets the risk assessment.",
          "type": "object",
          "properties": {
            "DateOfAssessment": {
              "format": "date-time",
              "description": "Gets or sets the date of assessment.",
              "type": "string"
            },
            "ClinicalSetting": {
              "description": "Gets or sets the clinical setting.",
              "type": "string"
            },
            "Assessor": {
              "description": "Gets or sets the assessor.",
              "type": "string"
            },
            "Role": {
              "description": "Gets or sets the role.",
              "type": "string"
            },
            "TenancyDescription": {
              "description": "Gets or sets the tenancy description.",
              "type": "string"
            }
          }
        }
      }
    },
    "Detail": {
      "description": "Gets or sets the detail.",
      "type": "object",
      "properties": {
        "Contacts": {
          "description": "Gets or sets the contacts.",
          "type": "array",
          "items": {
            "description": "The contact.",
            "type": "object",
            "properties": {
              "Rank": {
                "description": "Gets or sets the rank.",
                "type": "string"
              },
              "ContactType": {
                "description": "Gets or sets the type of the contact.",
                "type": "string"
              },
              "Relation": {
                "description": "Gets or sets the relation.",
                "type": "string"
              },
              "Title": {
                "description": "Gets or sets the title.",
                "type": "string"
              },
              "PreferredContactMethod": {
                "description": "Gets or sets the Preferred Contact Method.",
                "type": "string"
              },
              "Email": {
                "description": "Gets or sets the Email.",
                "type": "string"
              },
              "MobilePhone": {
                "description": "Gets or sets the Mobile Phone.",
                "type": "string"
              },
              "Surname": {
                "description": "Gets or sets the surname.",
                "type": "string"
              },
              "GivenName": {
                "description": "Gets or sets the name of the given.",
                "type": "string"
              },
              "AddressLine1": {
                "description": "Gets or sets the address line1.",
                "type": "string"
              },
              "AddressLine2": {
                "description": "Gets or sets the address line2.",
                "type": "string"
              },
              "AddressLine3": {
                "description": "Gets or sets the address line3.",
                "type": "string"
              },
              "AddressLine4": {
                "description": "Gets or sets the address line4.",
                "type": "string"
              },
              "AddressLine5": {
                "description": "Gets or sets the address line5.",
                "type": "string"
              },
              "PostCode": {
                "description": "Gets or sets the post code.",
                "type": "string"
              },
              "Country": {
                "description": "Gets or sets the country.",
                "type": "string"
              },
              "MainPhone": {
                "description": "Gets or sets the main phone.",
                "type": "string"
              },
              "OtherPhone": {
                "description": "Gets or sets the other phone.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "Diagnoses": {
          "description": "Gets or sets the diagnoses.",
          "type": "array",
          "items": {
            "description": "The diagnosis.",
            "type": "object",
            "properties": {
              "DiagnosisDate": {
                "format": "date-time",
                "description": "Gets or sets the diagnosis date.",
                "type": "string"
              },
              "ICD10Code": {
                "description": "Gets or sets the ic D10 code.",
                "type": "string"
              },
              "SnomedCTCode": {
                "description": "Gets or sets the snomed ct code.",
                "type": "string"
              },
              "DiagnosisDescription": {
                "description": "Gets or sets the diagnosis description.",
                "type": "string"
              },
              "ConfirmedBy": {
                "description": "Gets or sets the confirmed by.",
                "type": "string"
              },
              "Comments": {
                "description": "Gets or sets the comments.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "CPA": {
          "description": "Gets or sets the cpa.",
          "type": "object",
          "properties": {
            "Active": {
              "description": "Gets or sets the active.",
              "type": "array",
              "items": {
                "description": "The Care Programme Approach episode.",
                "type": "object",
                "properties": {
                  "Active": {
                    "description": "Gets or sets the active.",
                    "type": "string"
                  },
                  "StartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the start date.",
                    "type": "string"
                  },
                  "EndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the end date.",
                    "type": "string"
                  },
                  "Details": {
                    "description": "Gets or sets the details.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            },
            "HistoricMinus12Months": {
              "description": "Gets or sets the historic minus12 months.",
              "type": "array",
              "items": {
                "description": "The Care Programme Approach episode.",
                "type": "object",
                "properties": {
                  "Active": {
                    "description": "Gets or sets the active.",
                    "type": "string"
                  },
                  "StartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the start date.",
                    "type": "string"
                  },
                  "EndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the end date.",
                    "type": "string"
                  },
                  "Details": {
                    "description": "Gets or sets the details.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            },
            "AllHistoric": {
              "description": "Gets or sets all historic.",
              "type": "array",
              "items": {
                "description": "The Care Programme Approach episode.",
                "type": "object",
                "properties": {
                  "Active": {
                    "description": "Gets or sets the active.",
                    "type": "string"
                  },
                  "StartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the start date.",
                    "type": "string"
                  },
                  "EndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the end date.",
                    "type": "string"
                  },
                  "Details": {
                    "description": "Gets or sets the details.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "CPALevel": {
          "description": "Gets or sets the Cardiopulmonary arrest level.",
          "type": "array",
          "items": {
            "description": "The Care Programme Approach level.",
            "type": "object",
            "properties": {
              "CPALevel": {
                "description": "Gets or sets the Care Programme Approach level.",
                "type": "string"
              },
              "NextDateOfReview": {
                "format": "date-time",
                "description": "Gets or sets the next date of review.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "MHA": {
          "description": "Gets or sets the mha.",
          "type": "object",
          "properties": {
            "Active": {
              "description": "Gets or sets the active.",
              "type": "array",
              "items": {
                "description": "The act clas.",
                "type": "object",
                "properties": {
                  "SectionStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section start date.",
                    "type": "string"
                  },
                  "SectionEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section end date.",
                    "type": "string"
                  },
                  "MHASection": {
                    "description": "Gets or sets the Master of Healthcare Administration section.",
                    "type": "string"
                  },
                  "LeaveStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave start date.",
                    "type": "string"
                  },
                  "LeaveEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave end date.",
                    "type": "string"
                  },
                  "LeaveStatus": {
                    "description": "Gets or sets the leave status.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            },
            "HistoricMinus12Months": {
              "description": "Gets or sets the historic minus12 months.",
              "type": "array",
              "items": {
                "description": "The act clas.",
                "type": "object",
                "properties": {
                  "SectionStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section start date.",
                    "type": "string"
                  },
                  "SectionEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section end date.",
                    "type": "string"
                  },
                  "MHASection": {
                    "description": "Gets or sets the Master of Healthcare Administration section.",
                    "type": "string"
                  },
                  "LeaveStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave start date.",
                    "type": "string"
                  },
                  "LeaveEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave end date.",
                    "type": "string"
                  },
                  "LeaveStatus": {
                    "description": "Gets or sets the leave status.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            },
            "AllHistoric": {
              "description": "Gets or sets all historic.",
              "type": "array",
              "items": {
                "description": "The act clas.",
                "type": "object",
                "properties": {
                  "SectionStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section start date.",
                    "type": "string"
                  },
                  "SectionEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the section end date.",
                    "type": "string"
                  },
                  "MHASection": {
                    "description": "Gets or sets the Master of Healthcare Administration section.",
                    "type": "string"
                  },
                  "LeaveStartDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave start date.",
                    "type": "string"
                  },
                  "LeaveEndDate": {
                    "format": "date-time",
                    "description": "Gets or sets the leave end date.",
                    "type": "string"
                  },
                  "LeaveStatus": {
                    "description": "Gets or sets the leave status.",
                    "type": "string"
                  },
                  "TenancyDescription": {
                    "description": "Gets or sets the tenancy description.",
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "EIP": {
          "description": "Gets or sets the eip.",
          "type": "array",
          "items": {
            "description": "The Emerging Infections Program.",
            "type": "object",
            "properties": {
              "EIPStartDate": {
                "format": "date-time",
                "description": "Gets or sets the Emerging Infections Program start date.",
                "type": "string"
              },
              "ActiveEIP": {
                "description": "Gets or sets the active Emerging Infections Program.",
                "type": "string"
              },
              "MainContact": {
                "description": "Gets or sets the main contact.",
                "type": "string"
              },
              "ContactNumber": {
                "description": "Gets or sets the contact number.",
                "type": "string"
              },
              "CarePlan": {
                "description": "Gets or sets the care plan.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "RiskAssessment": {
          "description": "Gets or sets the risk assessment.",
          "type": "array",
          "items": {
            "description": "The Risk assessment detail.",
            "type": "object",
            "properties": {
              "RiskScores": {
                "description": "Gets or sets the risk scores.",
                "type": "array",
                "items": {
                  "description": "The Risk score.",
                  "type": "object",
                  "properties": {
                    "RiskScoreID": {
                      "description": "Gets or sets the risk score identifier.",
                      "type": "string"
                    },
                    "RiskDescription": {
                      "description": "Gets or sets the risk description.",
                      "type": "string"
                    },
                    "RiskStatusValue": {
                      "description": "Gets or sets the risk status value.",
                      "type": "string"
                    },
                    "TenancyDescription": {
                      "description": "Gets or sets the tenancy description.",
                      "type": "string"
                    }
                  }
                }
              },
              "RiskPlans": {
                "description": "Gets or sets the risk plans.",
                "type": "array",
                "items": {
                  "description": "The risk plan.",
                  "type": "object",
                  "properties": {
                    "Field1Description": {
                      "description": "Gets or sets the field1 description.",
                      "type": "string"
                    },
                    "Field1Value": {
                      "description": "Gets or sets the field1 value.",
                      "type": "string"
                    },
                    "TenancyDescription": {
                      "description": "Gets or sets the tenancy description.",
                      "type": "string"
                    }
                  }
                }
              },
              "DateOfAssessment": {
                "format": "date-time",
                "description": "Gets or sets the date of assessment.",
                "type": "string"
              },
              "ClinicalSetting": {
                "description": "Gets or sets the clinical setting.",
                "type": "string"
              },
              "Assessor": {
                "description": "Gets or sets the assessor.",
                "type": "string"
              },
              "Role": {
                "description": "Gets or sets the role.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "Medications": {
          "description": "Gets or sets the medications.",
          "type": "array",
          "items": {
            "description": "The medication.",
            "type": "object",
            "properties": {
              "LastIssueDate": {
                "format": "date-time",
                "description": "Gets or sets the last issue date.",
                "type": "string"
              },
              "Name": {
                "description": "Gets or sets the name.",
                "type": "string"
              },
              "Formulation": {
                "description": "Gets or sets the formulation.",
                "type": "string"
              },
              "Dosage": {
                "description": "Gets or sets the dosage.",
                "type": "string"
              },
              "Route": {
                "description": "Gets or sets the route.",
                "type": "string"
              },
              "Frequency": {
                "description": "Gets or sets the frequency.",
                "type": "string"
              },
              "Comments": {
                "description": "Gets or sets the comments.",
                "type": "string"
              },
              "IssuedBy": {
                "description": "Gets or sets the issued by.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "Immunisations": {
          "description": "Gets or sets the immunisations.",
          "type": "array",
          "items": {
            "description": "The immunisation model.",
            "type": "object",
            "properties": {
              "AdministeredDate": {
                "format": "date-time",
                "description": "Gets or sets the administered date.",
                "type": "string"
              },
              "Immunisation": {
                "description": "Gets or sets the immunisation.",
                "type": "string"
              },
              "Part": {
                "description": "Gets or sets the part.",
                "type": "string"
              },
              "Outcome": {
                "description": "Gets or sets the outcome.",
                "type": "string"
              },
              "Location": {
                "description": "Gets or sets the location.",
                "type": "string"
              },
              "BodySite": {
                "description": "Gets or sets the body site.",
                "type": "string"
              },
              "AdminMethod": {
                "description": "Gets or sets the admin method.",
                "type": "string"
              },
              "AdministeredBy": {
                "description": "Gets or sets the administered by.",
                "type": "string"
              },
              "ContactNumber": {
                "description": "Gets or sets the contact number.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        },
        "ClinicalNotes": {
          "description": "Gets or sets the clinical notes.",
          "type": "array",
          "items": {
            "description": "The note.",
            "type": "object",
            "properties": {
              "CreateTime": {
                "format": "date-time",
                "description": "Gets or sets the create time.",
                "type": "string"
              },
              "Order": {
                "description": "Gets or sets the order.",
                "type": "string"
              },
              "Notes": {
                "description": "Gets or sets the notes.",
                "type": "string"
              },
              "TenancyDescription": {
                "description": "Gets or sets the tenancy description.",
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}

400 Bad Request

Invalid parameter supplied

401 Unauthorized

Invalid credentials supplied

404 Not Found

Specified entity was not found or access denied

Code samples

@ECHO OFF

curl -v -X GET "https://graphnet-api-nonprod.azure-api.net/comm-mh/Patients/{detailID}/CommunityMentalHealth"
-H "Ocp-Apim-Subscription-Key: {subscription key}"
-H "Authorization: {access token}"

--data-ascii "{body}" 
using System;
using System.Net.Http.Headers;
using System.Text;
using System.Net.Http;
using System.Web;

namespace CSHttpClientSample
{
    static class Program
    {
        static void Main()
        {
            MakeRequest();
            Console.WriteLine("Hit ENTER to exit...");
            Console.ReadLine();
        }
        
        static async void MakeRequest()
        {
            var client = new HttpClient();
            var queryString = HttpUtility.ParseQueryString(string.Empty);

            // Request headers
            client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "{subscription key}");
            client.DefaultRequestHeaders.Add("Authorization", "{access token}");

            var uri = "https://graphnet-api-nonprod.azure-api.net/comm-mh/Patients/{detailID}/CommunityMentalHealth?" + queryString;

            var response = await client.GetAsync(uri);
        }
    }
}	
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
import java.net.URI;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

public class JavaSample 
{
    public static void main(String[] args) 
    {
        HttpClient httpclient = HttpClients.createDefault();

        try
        {
            URIBuilder builder = new URIBuilder("https://graphnet-api-nonprod.azure-api.net/comm-mh/Patients/{detailID}/CommunityMentalHealth");


            URI uri = builder.build();
            HttpGet request = new HttpGet(uri);
            request.setHeader("Ocp-Apim-Subscription-Key", "{subscription key}");
            request.setHeader("Authorization", "{access token}");


            // Request body
            StringEntity reqEntity = new StringEntity("{body}");
            request.setEntity(reqEntity);

            HttpResponse response = httpclient.execute(request);
            HttpEntity entity = response.getEntity();

            if (entity != null) 
            {
                System.out.println(EntityUtils.toString(entity));
            }
        }
        catch (Exception e)
        {
            System.out.println(e.getMessage());
        }
    }
}

<!DOCTYPE html>
<html>
<head>
    <title>JSSample</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>
<body>

<script type="text/javascript">
    $(function() {
        var params = {
            // Request parameters
        };
      
        $.ajax({
            url: "https://graphnet-api-nonprod.azure-api.net/comm-mh/Patients/{detailID}/CommunityMentalHealth?" + $.param(params),
            beforeSend: function(xhrObj){
                // Request headers
                xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","{subscription key}");
                xhrObj.setRequestHeader("Authorization","{access token}");
            },
            type: "GET",
            // Request body
            data: "{body}",
        })
        .done(function(data) {
            alert("success");
        })
        .fail(function() {
            alert("error");
        });
    });
</script>
</body>
</html>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    
    NSString* path = @"https://graphnet-api-nonprod.azure-api.net/comm-mh/Patients/{detailID}/CommunityMentalHealth";
    NSArray* array = @[
                         // Request parameters
                         @"entities=true",
                      ];
    
    NSString* string = [array componentsJoinedByString:@"&"];
    path = [path stringByAppendingFormat:@"?%@", string];

    NSLog(@"%@", path);

    NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
    [_request setHTTPMethod:@"GET"];
    // Request headers
    [_request setValue:@"{subscription key}" forHTTPHeaderField:@"Ocp-Apim-Subscription-Key"];
    [_request setValue:@"{access token}" forHTTPHeaderField:@"Authorization"];
    // Request body
    [_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]];
    
    NSURLResponse *response = nil;
    NSError *error = nil;
    NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error];

    if (nil != error)
    {
        NSLog(@"Error: %@", error);
    }
    else
    {
        NSError* error = nil;
        NSMutableDictionary* json = nil;
        NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding];
        NSLog(@"%@", dataString);
        
        if (nil != _connectionData)
        {
            json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error];
        }
        
        if (error || !json)
        {
            NSLog(@"Could not parse loaded json with error:%@", error);
        }
        
        NSLog(@"%@", json);
        _connectionData = nil;
    }
    
    [pool drain];

    return 0;
}
<?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';

$request = new Http_Request2('https://graphnet-api-nonprod.azure-api.net/comm-mh/Patients/{detailID}/CommunityMentalHealth');
$url = $request->getUrl();

$headers = array(
    // Request headers
    'Ocp-Apim-Subscription-Key' => '{subscription key}',
    'Authorization' => '{access token}',
);

$request->setHeader($headers);

$parameters = array(
    // Request parameters
);

$url->setQueryVariables($parameters);

$request->setMethod(HTTP_Request2::METHOD_GET);

// Request body
$request->setBody("{body}");

try
{
    $response = $request->send();
    echo $response->getBody();
}
catch (HttpException $ex)
{
    echo $ex;
}

?>
########### Python 2.7 #############
import httplib, urllib, base64

headers = {
    # Request headers
    'Ocp-Apim-Subscription-Key': '{subscription key}',
    'Authorization': '{access token}',
}

params = urllib.urlencode({
})

try:
    conn = httplib.HTTPSConnection('graphnet-api-nonprod.azure-api.net')
    conn.request("GET", "/comm-mh/Patients/{detailID}/CommunityMentalHealth?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################

########### Python 3.2 #############
import http.client, urllib.request, urllib.parse, urllib.error, base64

headers = {
    # Request headers
    'Ocp-Apim-Subscription-Key': '{subscription key}',
    'Authorization': '{access token}',
}

params = urllib.parse.urlencode({
})

try:
    conn = http.client.HTTPSConnection('graphnet-api-nonprod.azure-api.net')
    conn.request("GET", "/comm-mh/Patients/{detailID}/CommunityMentalHealth?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################
require 'net/http'

uri = URI('https://graphnet-api-nonprod.azure-api.net/comm-mh/Patients/{detailID}/CommunityMentalHealth')


request = Net::HTTP::Get.new(uri.request_uri)
# Request headers
request['Ocp-Apim-Subscription-Key'] = '{subscription key}'
# Request headers
request['Authorization'] = '{access token}'
# Request body
request.body = "{body}"

response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
    http.request(request)
end

puts response.body