{
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "https://dev.burni.xn--7-c56d.com/"
    }
  ],
  "info": {
    "title": "Burni API documentation",
    "version": "v2.1.0",
    "description": "Documentation for the REST API"
  },
  "paths": {
    "/fhir/AppointmentResponse": {
      "post": {
        "operationId": "createAppointmentResponse",
        "tags": [
          "AppointmentResponse"
        ],
        "summary": "create AppointmentResponse resource.",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/fhir+json": {
              "schema": {
                "$ref": "#/components/schemas/createAppointmentResponse"
              },
              "examples": {
                "json-example": {
                  "value": {
                    "resourceType": "AppointmentResponse",
                    "id": "example",
                    "text": {
                      "status": "generated",
                      "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Accept Brian MRI results discussion</div>"
                    },
                    "appointment": {
                      "reference": "Appointment/example",
                      "display": "Brian MRI results discussion"
                    },
                    "actor": {
                      "reference": "Patient/example",
                      "display": "Peter James Chalmers"
                    },
                    "participantStatus": "accepted",
                    "meta": {
                      "tag": [
                        {
                          "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                          "code": "HTEST",
                          "display": "test health data"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "application/fhir+xml": {
              "schema": {
                "$ref": "#/components/schemas/createAppointmentResponse",
                "xml": {
                  "name": "AppointmentResponse"
                }
              },
              "examples": {
                "xml-example": {
                  "value": "\n<?xml version=\"1.0\" encoding=\"UTF-8\"?><AppointmentResponse xmlns=\"http://hl7.org/fhir\"><id value=\"example\"/><meta><tag><system value=\"http://terminology.hl7.org/CodeSystem/v3-ActReason\"/><code value=\"HTEST\"/><display value=\"test health data\"/></tag></meta><text><status value=\"generated\"/><div xmlns=\"http://www.w3.org/1999/xhtml\">Accept Brian MRI results discussion</div></text><appointment><reference value=\"Appointment/example\"/><display value=\"Brian MRI results discussion\"/></appointment><actor><reference value=\"Patient/example\"/><display value=\"Peter James Chalmers\"/></actor><participantStatus value=\"accepted\"/></AppointmentResponse>"
                }
              }
            }
          }
        },
        "description": "create AppointmentResponse resource.",
        "responses": {
          "200": {
            "description": "successful operation",
            "content": {
              "application/fhir+json": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  }
                },
                "examples": {
                  "json-example": {
                    "value": {
                      "resourceType": "AppointmentResponse",
                      "id": "74c1c386-627c-475c-acbc-7f523e9a63ad",
                      "appointment": {
                        "reference": "Appointment/example",
                        "display": "Brian MRI results discussion"
                      },
                      "actor": {
                        "reference": "Patient/example",
                        "display": "Peter James Chalmers"
                      },
                      "participantStatus": "accepted",
                      "meta": {
                        "tag": [
                          {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                            "code": "HTEST",
                            "display": "test health data"
                          }
                        ],
                        "versionId": "1",
                        "lastUpdated": "2022-02-13T22:30:14.364+08:00"
                      }
                    }
                  }
                }
              },
              "application/fhir+xml": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  },
                  "xml": {
                    "name": "AppointmentResponse"
                  }
                },
                "examples": {
                  "xml-example": {
                    "value": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><AppointmentResponse xmlns=\"http://hl7.org/fhir\"><id value=\"b17c41aa-8d28-4b92-87de-36c10d5a0a7a\"/><meta><versionId value=\"1\"/><lastUpdated value=\"2022-02-17T17:34:51.619+08:00\"/><tag><system value=\"http://terminology.hl7.org/CodeSystem/v3-ActReason\"/><code value=\"HTEST\"/><display value=\"test health data\"/></tag></meta><appointment><reference value=\"Appointment/example\"/><display value=\"Brian MRI results discussion\"/></appointment><actor><reference value=\"Patient/example\"/><display value=\"Peter James Chalmers\"/></actor><participantStatus value=\"accepted\"/></AppointmentResponse>"
                  }
                }
              }
            }
          },
          "400": {
            "description": "error",
            "content": {
              "application/fhir+json": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  }
                },
                "examples": {
                  "Bad-Request-Response": {
                    "value": {
                      "resourceType": "OperationOutcome",
                      "issue": [
                        {
                          "severity": "error",
                          "code": "exception",
                          "diagnostics": "validation error, path `resourceType` is required"
                        }
                      ]
                    }
                  }
                }
              },
              "application/fhir+xml": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  },
                  "xml": {
                    "name": "OperationOutcome"
                  }
                },
                "examples": {
                  "Bad-Request-Response": {
                    "value": "\n<OperationOutcome xmlns='http://hl7.org/fhir'>\n<issue>\n    <severity value='error'/>\n    <code value='exception'/>\n    <diagnostics value='validation error, path `resourceType` is required'/>\n</issue>\n</OperationOutcome>"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "source": "#example from: https://chinlinlee.github.io/Burni/assets/FHIR/fhir-resource-examples/appointmentresponse-example.json\ncurl --location --request POST 'http://burni.example.com/fhir/AppointmentResponse \\' \n--header 'Content-Type: application/fhir+json' \\\n--data-raw '{\"resourceType\":\"AppointmentResponse\",\"id\":\"74c1c386-627c-475c-acbc-7f523e9a63ad\",\"appointment\":{\"reference\":\"Appointment/example\",\"display\":\"Brian MRI results discussion\"},\"actor\":{\"reference\":\"Patient/example\",\"display\":\"Peter James Chalmers\"},\"participantStatus\":\"accepted\",\"meta\":{\"tag\":[{\"system\":\"http://terminology.hl7.org/CodeSystem/v3-ActReason\",\"code\":\"HTEST\",\"display\":\"test health data\"}],\"versionId\":\"1\",\"lastUpdated\":\"2022-02-13T22:30:14.364+08:00\"}}'",
            "label": "cURL"
          },
          {
            "lang": "JavaScript",
            "source": " //example from: https://chinlinlee.github.io/Burni/assets/FHIR/fhir-resource-examples/appointmentresponse-example.json\nconst axios = require('axios');\nconst data = {\"resourceType\":\"AppointmentResponse\",\"id\":\"74c1c386-627c-475c-acbc-7f523e9a63ad\",\"appointment\":{\"reference\":\"Appointment/example\",\"display\":\"Brian MRI results discussion\"},\"actor\":{\"reference\":\"Patient/example\",\"display\":\"Peter James Chalmers\"},\"participantStatus\":\"accepted\",\"meta\":{\"tag\":[{\"system\":\"http://terminology.hl7.org/CodeSystem/v3-ActReason\",\"code\":\"HTEST\",\"display\":\"test health data\"}],\"versionId\":\"1\",\"lastUpdated\":\"2022-02-13T22:30:14.364+08:00\"}}\nconst config = {\n    method: 'post',\n    url: 'http://burni.example.com/fhir/AppointmentResponse',\n    headers: { \n        'Content-Type': 'application/fhir+json'\n    },\n    data: data\n};\n\naxios(config)\n.then(function (response) {\n    console.log(JSON.stringify(response.data));\n})\n.catch(function (error) {\n    console.log(error);\n});",
            "label": "javascript Axios"
          }
        ]
      }
    },
    "/fhir/AppointmentResponse/{id}": {
      "delete": {
        "operationId": "deleteAppointmentResponse",
        "tags": [
          "AppointmentResponse"
        ],
        "summary": "delete AppointmentResponse resource by id.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource ID in server"
          }
        ],
        "responses": {
          "200": {
            "description": "successful operation",
            "content": {
              "application/fhir+json": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  }
                },
                "examples": {
                  "Success-Response": {
                    "value": {
                      "resourceType": "OperationOutcome",
                      "issue": [
                        {
                          "severity": "information",
                          "code": "informational",
                          "diagnostics": "delete AppointmentResponse/74c1c386-627c-475c-acbc-7f523e9a63ad successfully"
                        }
                      ]
                    }
                  }
                }
              },
              "application/fhir+xml": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  },
                  "xml": {
                    "name": "OperationOutcome"
                  }
                },
                "examples": {
                  "Success-Response-XML": {
                    "value": "<OperationOutcome xmlns='http://hl7.org/fhir'>\n    <issue>\n    <severity value='information'/>\n    <code value='informational'/>\n    <diagnostics value='delete AppointmentResponse/74c1c386-627c-475c-acbc-7f523e9a63ad successfully'/>\n    </issue>\n</OperationOutcome>"
                  }
                }
              }
            }
          },
          "404": {
            "description": "error",
            "content": {
              "application/fhir+json": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  }
                },
                "examples": {
                  "Not-Found-Response": {
                    "value": {
                      "resourceType": "OperationOutcome",
                      "issue": [
                        {
                          "severity": "error",
                          "code": "exception",
                          "diagnostics": "The id->74c1c386-627c-475c-acbc-7f523e9a63ad not found in AppointmentResponse resource"
                        }
                      ]
                    }
                  }
                }
              },
              "application/fhir+xml": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  },
                  "xml": {
                    "name": "OperationOutcome"
                  }
                },
                "examples": {
                  "Not-Found-Response-XML": {
                    "value": "<OperationOutcome xmlns='http://hl7.org/fhir'>\n    <issue>\n    <severity value='error'/>\n    <code value='not-found'/>\n    <diagnostics value='The id-&gt;74c1c386-627c-475c-acbc-7f523e9a63ad  not found in AppointmentResponse resource'/>\n    </issue>\n</OperationOutcome>"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "source": "#example from: https://chinlinlee.github.io/Burni/assets/FHIR/fhir-resource-examples/appointmentresponse-example.json\ncurl --location --request DELETE 'http://burni.example.com/fhir/AppointmentResponse/74c1c386-627c-475c-acbc-7f523e9a63ad'",
            "label": "cURL"
          },
          {
            "lang": "JavaScript",
            "source": " //example from: https://chinlinlee.github.io/Burni/assets/FHIR/fhir-resource-examples/appointmentresponse-example.json\nconst axios = require('axios');\nconst config = {\n    method: 'delete',\n    url: 'http://burni.example.com/fhir/AppointmentResponse/74c1c386-627c-475c-acbc-7f523e9a63ad'\n};\n\naxios(config)\n.then(function (response) {\n    console.log(JSON.stringify(response.data));\n})\n.catch(function (error) {\n    console.log(error);\n});",
            "label": "javascript Axios"
          }
        ]
      },
      "get": {
        "operationId": "readAppointmentResponse",
        "tags": [
          "AppointmentResponse"
        ],
        "summary": "read AppointmentResponse resource by id.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource ID in server"
          }
        ],
        "responses": {
          "200": {
            "description": "successful operation",
            "content": {
              "application/fhir+json": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  }
                },
                "examples": {
                  "Success-Response": {
                    "value": {
                      "resourceType": "AppointmentResponse",
                      "id": "74c1c386-627c-475c-acbc-7f523e9a63ad",
                      "appointment": {
                        "reference": "Appointment/example",
                        "display": "Brian MRI results discussion"
                      },
                      "actor": {
                        "reference": "Patient/example",
                        "display": "Peter James Chalmers"
                      },
                      "participantStatus": "accepted",
                      "meta": {
                        "tag": [
                          {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                            "code": "HTEST",
                            "display": "test health data"
                          }
                        ],
                        "versionId": "1",
                        "lastUpdated": "2022-02-13T22:30:14.364+08:00"
                      }
                    }
                  }
                }
              },
              "application/fhir+xml": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  },
                  "xml": {
                    "name": "AppointmentResponse"
                  }
                },
                "examples": {
                  "Success-Response-XML": {
                    "value": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><AppointmentResponse xmlns=\"http://hl7.org/fhir\"><id value=\"b17c41aa-8d28-4b92-87de-36c10d5a0a7a\"/><meta><versionId value=\"1\"/><lastUpdated value=\"2022-02-17T17:34:51.619+08:00\"/><tag><system value=\"http://terminology.hl7.org/CodeSystem/v3-ActReason\"/><code value=\"HTEST\"/><display value=\"test health data\"/></tag></meta><appointment><reference value=\"Appointment/example\"/><display value=\"Brian MRI results discussion\"/></appointment><actor><reference value=\"Patient/example\"/><display value=\"Peter James Chalmers\"/></actor><participantStatus value=\"accepted\"/></AppointmentResponse>"
                  }
                }
              }
            }
          },
          "404": {
            "description": "error",
            "content": {
              "application/fhir+json": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  }
                },
                "examples": {
                  "Not-Found-Response": {
                    "value": {
                      "resourceType": "OperationOutcome",
                      "issue": [
                        {
                          "severity": "error",
                          "code": "exception",
                          "diagnostics": "not found AppointmentResponse/74c1c386-627c-475c-acbc-7f523e9a63ad"
                        }
                      ]
                    }
                  }
                }
              },
              "application/fhir+xml": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  },
                  "xml": {
                    "name": "OperationOutcome"
                  }
                },
                "examples": {
                  "Not-Found-Response-XML": {
                    "value": "<OperationOutcome xmlns='http://hl7.org/fhir'>\n<issue>\n    <severity value='error'/>\n    <code value='exception'/>\n    <diagnostics value='not found AppointmentResponse/74c1c386-627c-475c-acbc-7f523e9a63ad'/>\n</issue>\n</OperationOutcome>"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "source": "#example from: https://chinlinlee.github.io/Burni/assets/FHIR/fhir-resource-examples/appointmentresponse-example.json\ncurl --location --request GET 'http://burni.example.com/fhir/AppointmentResponse/74c1c386-627c-475c-acbc-7f523e9a63ad'",
            "label": "cURL"
          },
          {
            "lang": "JavaScript",
            "source": " //example from: https://chinlinlee.github.io/Burni/assets/FHIR/fhir-resource-examples/appointmentresponse-example.json\nconst axios = require('axios');\nconst config = {\n    method: 'get',\n    url: 'http://burni.example.com/fhir/AppointmentResponse/74c1c386-627c-475c-acbc-7f523e9a63ad'\n};\n\naxios(config)\n.then(function (response) {\n    console.log(JSON.stringify(response.data));\n})\n.catch(function (error) {\n    console.log(error);\n});",
            "label": "javascript Axios"
          }
        ]
      },
      "put": {
        "operationId": "updateAppointmentResponse",
        "tags": [
          "AppointmentResponse"
        ],
        "summary": "update AppointmentResponse resource.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource ID that you want to update"
          }
        ],
        "requestBody": {
          "content": {
            "application/fhir+json": {
              "schema": {
                "$ref": "#/components/schemas/updateAppointmentResponse"
              },
              "examples": {
                "json-example": {
                  "value": {
                    "resourceType": "AppointmentResponse",
                    "id": "example",
                    "text": {
                      "status": "generated",
                      "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Accept Brian MRI results discussion</div>"
                    },
                    "appointment": {
                      "reference": "Appointment/example",
                      "display": "KQg68PSVz60qhV"
                    },
                    "actor": {
                      "reference": "Patient/example",
                      "display": "MGRRLuK0GPz"
                    },
                    "participantStatus": "accepted",
                    "meta": {
                      "tag": [
                        {
                          "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                          "code": "HTEST",
                          "display": "PVgW7qKLIcgN5Ud"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "application/fhir+xml": {
              "schema": {
                "$ref": "#/components/schemas/updateAppointmentResponse",
                "xml": {
                  "name": "AppointmentResponse"
                }
              },
              "examples": {
                "xml-example": {
                  "value": "\n<?xml version=\"1.0\" encoding=\"UTF-8\"?><AppointmentResponse xmlns=\"http://hl7.org/fhir\"><id value=\"example\"/><meta><tag><system value=\"http://terminology.hl7.org/CodeSystem/v3-ActReason\"/><code value=\"HTEST\"/><display value=\"PVgW7qKLIcgN5Ud\"/></tag></meta><text><status value=\"generated\"/><div xmlns=\"http://www.w3.org/1999/xhtml\">Accept Brian MRI results discussion</div></text><appointment><reference value=\"Appointment/example\"/><display value=\"KQg68PSVz60qhV\"/></appointment><actor><reference value=\"Patient/example\"/><display value=\"MGRRLuK0GPz\"/></actor><participantStatus value=\"accepted\"/></AppointmentResponse>"
                }
              }
            }
          }
        },
        "description": "update AppointmentResponse resource.",
        "responses": {
          "200": {
            "description": "successful operation",
            "content": {
              "application/fhir+json": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  }
                },
                "examples": {
                  "json-example": {
                    "value": {
                      "resourceType": "AppointmentResponse",
                      "id": "AppointmentResponse-example",
                      "appointment": {
                        "reference": "Appointment/example",
                        "display": "KQg68PSVz60qhV"
                      },
                      "actor": {
                        "reference": "Patient/example",
                        "display": "MGRRLuK0GPz"
                      },
                      "participantStatus": "accepted",
                      "meta": {
                        "versionId": "22",
                        "lastUpdated": "2022-02-17T23:27:47.357+08:00"
                      }
                    }
                  }
                }
              },
              "application/fhir+xml": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  },
                  "xml": {
                    "name": "AppointmentResponse"
                  }
                },
                "examples": {
                  "xml-example": {
                    "value": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><AppointmentResponse xmlns=\"http://hl7.org/fhir\"><id value=\"AppointmentResponse-example\"/><meta><versionId value=\"24\"/><lastUpdated value=\"2022-02-18T00:38:57.206+08:00\"/></meta><appointment><reference value=\"Appointment/example\"/><display value=\"KQg68PSVz60qhV\"/></appointment><actor><reference value=\"Patient/example\"/><display value=\"MGRRLuK0GPz\"/></actor><participantStatus value=\"accepted\"/></AppointmentResponse>"
                  }
                }
              }
            }
          },
          "400": {
            "description": "error",
            "content": {
              "application/fhir+json": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  }
                },
                "examples": {
                  "Bad-Request-Response": {
                    "value": {
                      "resourceType": "OperationOutcome",
                      "issue": [
                        {
                          "severity": "error",
                          "code": "exception",
                          "diagnostics": "validation error, path `resourceType` is required"
                        }
                      ]
                    }
                  }
                }
              },
              "application/fhir+xml": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  },
                  "xml": {
                    "name": "OperationOutcome"
                  }
                },
                "examples": {
                  "Bad-Request-Response": {
                    "value": "\n<OperationOutcome xmlns='http://hl7.org/fhir'>\n<issue>\n    <severity value='error'/>\n    <code value='exception'/>\n    <diagnostics value='validation error, path `resourceType` is required'/>\n</issue>\n</OperationOutcome>"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "source": "#example from: https://chinlinlee.github.io/Burni/assets/FHIR/fhir-resource-examples/appointmentresponse-example.json\ncurl --location --request PUT 'http://burni.example.com/fhir/AppointmentResponse/AppointmentResponse-example \\' \n--header 'Content-Type: application/fhir+json' \\\n--data-raw '{\"resourceType\":\"AppointmentResponse\",\"id\":\"example\",\"text\":{\"status\":\"generated\",\"div\":\"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\">Accept Brian MRI results discussion</div>\"},\"appointment\":{\"reference\":\"Appointment/example\",\"display\":\"KQg68PSVz60qhV\"},\"actor\":{\"reference\":\"Patient/example\",\"display\":\"MGRRLuK0GPz\"},\"participantStatus\":\"accepted\",\"meta\":{\"tag\":[{\"system\":\"http://terminology.hl7.org/CodeSystem/v3-ActReason\",\"code\":\"HTEST\",\"display\":\"PVgW7qKLIcgN5Ud\"}]}}'",
            "label": "cURL"
          },
          {
            "lang": "JavaScript",
            "source": " //example from: https://chinlinlee.github.io/Burni/assets/FHIR/fhir-resource-examples/appointmentresponse-example.json\nconst axios = require('axios');\nconst data = {\"resourceType\":\"AppointmentResponse\",\"id\":\"AppointmentResponse-example\",\"appointment\":{\"reference\":\"Appointment/example\",\"display\":\"KQg68PSVz60qhV\"},\"actor\":{\"reference\":\"Patient/example\",\"display\":\"MGRRLuK0GPz\"},\"participantStatus\":\"accepted\",\"meta\":{\"versionId\":\"22\",\"lastUpdated\":\"2022-02-17T23:27:47.357+08:00\"}}\nconst config = {\n    method: 'put',\n    url: 'http://burni.example.com/fhir/AppointmentResponse/AppointmentResponse-example',\n    headers: { \n        'Content-Type': 'application/fhir+json'\n    },\n    data: data\n};\n\naxios(config)\n.then(function (response) {\n    console.log(JSON.stringify(response.data));\n})\n.catch(function (error) {\n    console.log(error);\n});",
            "label": "javascript Axios"
          }
        ]
      }
    },
    "/fhir/AppointmentResponse/": {
      "get": {
        "operationId": "search-typeAppointmentResponse",
        "tags": [
          "AppointmentResponse"
        ],
        "summary": "search-type AppointmentResponse resource by id.",
        "parameters": [
          {
            "name": "actor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The Person, Location/HealthcareService or Device that this appointment response replies for"
          },
          {
            "name": "appointment",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The appointment that the response is attached to"
          },
          {
            "name": "identifier",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "An Identifier in this appointment response"
          },
          {
            "name": "location",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "This Response is for this Location"
          },
          {
            "name": "part-status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The participants acceptance status for this appointment"
          },
          {
            "name": "patient",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "This Response is for this Patient"
          },
          {
            "name": "practitioner",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "This Response is for this Practitioner"
          }
        ],
        "responses": {
          "200": {
            "description": "successful operation",
            "content": {
              "application/fhir+json": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  }
                },
                "examples": {
                  "Success-Response": {
                    "value": {
                      "resourceType": "Bundle",
                      "type": "searchset",
                      "total": 1,
                      "link": [
                        {
                          "relation": "self",
                          "url": "http://burni.example.com/fhir/AppointmentResponse?_offset=0&_count=100"
                        }
                      ],
                      "entry": [
                        {
                          "fullUrl": "http://burni.example.com/fhir/AppointmentResponse/74c1c386-627c-475c-acbc-7f523e9a63ad",
                          "resource": {
                            "resourceType": "AppointmentResponse",
                            "id": "74c1c386-627c-475c-acbc-7f523e9a63ad",
                            "appointment": {
                              "reference": "Appointment/example",
                              "display": "Brian MRI results discussion"
                            },
                            "actor": {
                              "reference": "Patient/example",
                              "display": "Peter James Chalmers"
                            },
                            "participantStatus": "accepted",
                            "meta": {
                              "tag": [
                                {
                                  "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                                  "code": "HTEST",
                                  "display": "test health data"
                                }
                              ],
                              "versionId": "1",
                              "lastUpdated": "2022-02-13T22:30:14.364+08:00"
                            }
                          }
                        }
                      ]
                    }
                  },
                  "No-Match": {
                    "value": {
                      "resourceType": "Bundle",
                      "type": "searchset",
                      "total": 0,
                      "link": [
                        {
                          "relation": "self",
                          "url": "http://localhost:8090/fhir/Patient?name=1&_offset=0&_count=100"
                        }
                      ]
                    }
                  }
                }
              },
              "application/fhir+xml": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  },
                  "xml": {
                    "name": "Bundle"
                  }
                },
                "examples": {
                  "Success-Response-XML": {
                    "value": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Bundle xmlns=\"http://hl7.org/fhir\">\n    <type value=\"searchset\"/>\n    <total value=\"1\"/>\n    <link>\n        <relation value=\"self\"/>\n        <url value=\"http://burni.example.com/fhir/AppointmentResponse?_offset=0&amp;_count=100\"/>\n    </link>\n    <entry>\n        <fullUrl value=\"http://burni.example.com/fhir/AppointmentResponse/74c1c386-627c-475c-acbc-7f523e9a63ad\"/>\n        <resource>\n            <?xml version=\"1.0\" encoding=\"UTF-8\"?><AppointmentResponse xmlns=\"http://hl7.org/fhir\"><id value=\"b17c41aa-8d28-4b92-87de-36c10d5a0a7a\"/><meta><versionId value=\"1\"/><lastUpdated value=\"2022-02-17T17:34:51.619+08:00\"/><tag><system value=\"http://terminology.hl7.org/CodeSystem/v3-ActReason\"/><code value=\"HTEST\"/><display value=\"test health data\"/></tag></meta><appointment><reference value=\"Appointment/example\"/><display value=\"Brian MRI results discussion\"/></appointment><actor><reference value=\"Patient/example\"/><display value=\"Peter James Chalmers\"/></actor><participantStatus value=\"accepted\"/></AppointmentResponse>\n        </resource>\n    </entry>\n</Bundle>"
                  },
                  "No-Match": {
                    "value": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Bundle xmlns=\"http://hl7.org/fhir\">\n    <type value=\"searchset\"/>\n    <total value=\"0\"/>\n    <link>\n        <relation value=\"self\"/>\n        <url value=\"http://burni.example.com/fhir/AppointmentResponse?_offset=0&amp;_count=100\"/>\n    </link>\n</Bundle>"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "source": "curl --location --request GET 'http://burni.example.com/fhir/AppointmentResponse'",
            "label": "cURL"
          },
          {
            "lang": "JavaScript",
            "source": "const axios = require('axios');\nconst config = {\n    method: 'get',\n    url: 'http://burni.example.com/fhir/AppointmentResponse'\n};\n\naxios(config)\n.then(function (response) {\n    console.log(JSON.stringify(response.data));\n})\n.catch(function (error) {\n    console.log(error);\n});",
            "label": "javascript Axios"
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "createAppointmentResponse": {
        "properties": {
          "resourceType": {
            "type": "string",
            "description": ""
          }
        },
        "required": [
          "resourceType"
        ]
      },
      "FHIR-JSON-RESOURCE": {
        "properties": {}
      },
      "FHIR-XML-RESOURCE": {
        "properties": {}
      },
      "deleteAppointmentResponse": {
        "properties": {
          "id": {
            "type": "string",
            "description": "Resource ID in server"
          }
        },
        "required": [
          "id"
        ]
      },
      "readAppointmentResponse": {
        "properties": {
          "id": {
            "type": "string",
            "description": "Resource ID in server"
          }
        },
        "required": [
          "id"
        ]
      },
      "updateAppointmentResponse": {
        "properties": {
          "id": {
            "type": "string",
            "description": "Resource ID that you want to update"
          },
          "resourceType": {
            "type": "string",
            "description": ""
          }
        },
        "required": [
          "id",
          "resourceType"
        ]
      }
    }
  }
}