{
  "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/RiskAssessment": {
      "post": {
        "operationId": "createRiskAssessment",
        "tags": [
          "RiskAssessment"
        ],
        "summary": "create RiskAssessment resource.",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/fhir+json": {
              "schema": {
                "$ref": "#/components/schemas/createRiskAssessment"
              },
              "examples": {
                "json-example": {
                  "value": {
                    "resourceType": "RiskAssessment",
                    "id": "genetic",
                    "text": {
                      "status": "generated",
                      "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p>Probability of developing breast cancer before the age indicated:</p>\n      <table>\n        <thead>\n          <tr>\n            <th>Age</th>\n            <th>Probability (%)</th>\n          </tr>\n        </thead>\n        <tbody>\n          <tr>\n            <td>current-53</td>\n            <td>0.0168</td>\n          </tr>\n          <tr>\n            <td>54-57</td>\n            <td>0.0368</td>\n          </tr>\n          <tr>\n            <td>58-62</td>\n            <td>0.0594</td>\n          </tr>\n          <tr>\n            <td>63-67</td>\n            <td>0.0838</td>\n          </tr>\n          <tr>\n            <td>68-72</td>\n            <td>0.1089</td>\n          </tr>\n          <tr>\n            <td>73-77</td>\n            <td>0.1327</td>\n          </tr>\n          <tr>\n            <td>78-82</td>\n            <td>0.1530</td>\n          </tr>\n          <tr>\n            <td>83-87</td>\n            <td>0.1663</td>\n          </tr>\n        </tbody>\n      </table>\n    </div>"
                    },
                    "status": "final",
                    "method": {
                      "coding": [
                        {
                          "code": "BRCAPRO"
                        }
                      ]
                    },
                    "subject": {
                      "reference": "Patient/b248b1b2-1686-4b94-9936-37d7a5f94b51"
                    },
                    "occurrenceDateTime": "2006-01-13T23:01:00Z",
                    "basis": [
                      {
                        "reference": "List/prognosis"
                      }
                    ],
                    "prediction": [
                      {
                        "outcome": {
                          "text": "Breast Cancer"
                        },
                        "probabilityDecimal": 0.000168,
                        "whenRange": {
                          "high": {
                            "value": 53,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          }
                        }
                      },
                      {
                        "outcome": {
                          "text": "Breast Cancer"
                        },
                        "probabilityDecimal": 0.000368,
                        "whenRange": {
                          "low": {
                            "value": 54,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          },
                          "high": {
                            "value": 57,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          }
                        }
                      },
                      {
                        "outcome": {
                          "text": "Breast Cancer"
                        },
                        "probabilityDecimal": 0.000594,
                        "whenRange": {
                          "low": {
                            "value": 58,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          },
                          "high": {
                            "value": 62,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          }
                        }
                      },
                      {
                        "outcome": {
                          "text": "Breast Cancer"
                        },
                        "probabilityDecimal": 0.000838,
                        "whenRange": {
                          "low": {
                            "value": 63,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          },
                          "high": {
                            "value": 67,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          }
                        }
                      },
                      {
                        "outcome": {
                          "text": "Breast Cancer"
                        },
                        "probabilityDecimal": 0.001089,
                        "whenRange": {
                          "low": {
                            "value": 68,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          },
                          "high": {
                            "value": 72,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          }
                        }
                      },
                      {
                        "outcome": {
                          "text": "Breast Cancer"
                        },
                        "probabilityDecimal": 0.001327,
                        "whenRange": {
                          "low": {
                            "value": 73,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          },
                          "high": {
                            "value": 77,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          }
                        }
                      },
                      {
                        "outcome": {
                          "text": "Breast Cancer"
                        },
                        "probabilityDecimal": 0.00153,
                        "whenRange": {
                          "low": {
                            "value": 78,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          },
                          "high": {
                            "value": 82,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          }
                        }
                      },
                      {
                        "outcome": {
                          "text": "Breast Cancer"
                        },
                        "probabilityDecimal": 0.001663,
                        "whenRange": {
                          "low": {
                            "value": 83,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          },
                          "high": {
                            "value": 88,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          }
                        }
                      }
                    ],
                    "note": [
                      {
                        "text": "High degree of certainty"
                      }
                    ],
                    "meta": {
                      "tag": [
                        {
                          "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                          "code": "HTEST",
                          "display": "test health data"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "application/fhir+xml": {
              "schema": {
                "$ref": "#/components/schemas/createRiskAssessment",
                "xml": {
                  "name": "RiskAssessment"
                }
              },
              "examples": {
                "xml-example": {
                  "value": "\n<?xml version=\"1.0\" encoding=\"UTF-8\"?><RiskAssessment xmlns=\"http://hl7.org/fhir\"><id value=\"genetic\"/><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\"><p>Probability of developing breast cancer before the age indicated:</p><table><thead><tr><th>Age</th><th>Probability (%)</th></tr></thead><tbody><tr><td>current-53</td><td>0.0168</td></tr><tr><td>54-57</td><td>0.0368</td></tr><tr><td>58-62</td><td>0.0594</td></tr><tr><td>63-67</td><td>0.0838</td></tr><tr><td>68-72</td><td>0.1089</td></tr><tr><td>73-77</td><td>0.1327</td></tr><tr><td>78-82</td><td>0.1530</td></tr><tr><td>83-87</td><td>0.1663</td></tr></tbody></table></div></text><status value=\"final\"/><method><coding><code value=\"BRCAPRO\"/></coding></method><subject><reference value=\"Patient/b248b1b2-1686-4b94-9936-37d7a5f94b51\"/></subject><occurrenceDateTime value=\"2006-01-13T23:01:00Z\"/><basis><reference value=\"List/prognosis\"/></basis><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.000168\"/><whenRange><high><value value=\"53\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.000368\"/><whenRange><low><value value=\"54\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"57\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.000594\"/><whenRange><low><value value=\"58\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"62\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.000838\"/><whenRange><low><value value=\"63\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"67\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.001089\"/><whenRange><low><value value=\"68\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"72\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.001327\"/><whenRange><low><value value=\"73\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"77\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.00153\"/><whenRange><low><value value=\"78\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"82\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.001663\"/><whenRange><low><value value=\"83\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"88\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><note><text value=\"High degree of certainty\"/></note></RiskAssessment>"
                }
              }
            }
          }
        },
        "description": "create RiskAssessment 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": "RiskAssessment",
                      "id": "d85cccbb-4de2-4fa9-8cb7-6bf77c10909f",
                      "status": "final",
                      "method": {
                        "coding": [
                          {
                            "code": "BRCAPRO"
                          }
                        ]
                      },
                      "subject": {
                        "reference": "Patient/b248b1b2-1686-4b94-9936-37d7a5f94b51"
                      },
                      "occurrenceDateTime": "2006-01-14T07:01:00+08:00",
                      "basis": [
                        {
                          "reference": "List/prognosis"
                        }
                      ],
                      "prediction": [
                        {
                          "outcome": {
                            "text": "Breast Cancer"
                          },
                          "probabilityDecimal": 0.000168,
                          "whenRange": {
                            "high": {
                              "value": 53,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "Breast Cancer"
                          },
                          "probabilityDecimal": 0.000368,
                          "whenRange": {
                            "low": {
                              "value": 54,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 57,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "Breast Cancer"
                          },
                          "probabilityDecimal": 0.000594,
                          "whenRange": {
                            "low": {
                              "value": 58,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 62,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "Breast Cancer"
                          },
                          "probabilityDecimal": 0.000838,
                          "whenRange": {
                            "low": {
                              "value": 63,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 67,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "Breast Cancer"
                          },
                          "probabilityDecimal": 0.001089,
                          "whenRange": {
                            "low": {
                              "value": 68,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 72,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "Breast Cancer"
                          },
                          "probabilityDecimal": 0.001327,
                          "whenRange": {
                            "low": {
                              "value": 73,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 77,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "Breast Cancer"
                          },
                          "probabilityDecimal": 0.00153,
                          "whenRange": {
                            "low": {
                              "value": 78,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 82,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "Breast Cancer"
                          },
                          "probabilityDecimal": 0.001663,
                          "whenRange": {
                            "low": {
                              "value": 83,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 88,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        }
                      ],
                      "note": [
                        {
                          "text": "High degree of certainty"
                        }
                      ],
                      "meta": {
                        "tag": [
                          {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                            "code": "HTEST",
                            "display": "test health data"
                          }
                        ],
                        "versionId": "1",
                        "lastUpdated": "2022-02-13T22:30:19.207+08:00"
                      }
                    }
                  }
                }
              },
              "application/fhir+xml": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  },
                  "xml": {
                    "name": "RiskAssessment"
                  }
                },
                "examples": {
                  "xml-example": {
                    "value": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><RiskAssessment xmlns=\"http://hl7.org/fhir\"><id value=\"a93ebbff-f68b-4ee3-b180-2fe8d820e413\"/><meta><versionId value=\"1\"/><lastUpdated value=\"2022-02-17T17:34:55.999+08:00\"/><tag><system value=\"http://terminology.hl7.org/CodeSystem/v3-ActReason\"/><code value=\"HTEST\"/><display value=\"test health data\"/></tag></meta><status value=\"final\"/><method><coding><code value=\"BRCAPRO\"/></coding></method><subject><reference value=\"Patient/b248b1b2-1686-4b94-9936-37d7a5f94b51\"/></subject><occurrenceDateTime value=\"2006-01-14T07:01:00+08:00\"/><basis><reference value=\"List/prognosis\"/></basis><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.000168\"/><whenRange><high><value value=\"53\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.000368\"/><whenRange><low><value value=\"54\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"57\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.000594\"/><whenRange><low><value value=\"58\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"62\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.000838\"/><whenRange><low><value value=\"63\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"67\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.001089\"/><whenRange><low><value value=\"68\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"72\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.001327\"/><whenRange><low><value value=\"73\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"77\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.00153\"/><whenRange><low><value value=\"78\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"82\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.001663\"/><whenRange><low><value value=\"83\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"88\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><note><text value=\"High degree of certainty\"/></note></RiskAssessment>"
                  }
                }
              }
            }
          },
          "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/riskassessment-example.json\ncurl --location --request POST 'http://burni.example.com/fhir/RiskAssessment \\' \n--header 'Content-Type: application/fhir+json' \\\n--data-raw '{\"resourceType\":\"RiskAssessment\",\"id\":\"d85cccbb-4de2-4fa9-8cb7-6bf77c10909f\",\"status\":\"final\",\"method\":{\"coding\":[{\"code\":\"BRCAPRO\"}]},\"subject\":{\"reference\":\"Patient/b248b1b2-1686-4b94-9936-37d7a5f94b51\"},\"occurrenceDateTime\":\"2006-01-14T07:01:00+08:00\",\"basis\":[{\"reference\":\"List/prognosis\"}],\"prediction\":[{\"outcome\":{\"text\":\"Breast Cancer\"},\"probabilityDecimal\":0.000168,\"whenRange\":{\"high\":{\"value\":53,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"Breast Cancer\"},\"probabilityDecimal\":0.000368,\"whenRange\":{\"low\":{\"value\":54,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":57,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"Breast Cancer\"},\"probabilityDecimal\":0.000594,\"whenRange\":{\"low\":{\"value\":58,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":62,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"Breast Cancer\"},\"probabilityDecimal\":0.000838,\"whenRange\":{\"low\":{\"value\":63,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":67,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"Breast Cancer\"},\"probabilityDecimal\":0.001089,\"whenRange\":{\"low\":{\"value\":68,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":72,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"Breast Cancer\"},\"probabilityDecimal\":0.001327,\"whenRange\":{\"low\":{\"value\":73,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":77,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"Breast Cancer\"},\"probabilityDecimal\":0.00153,\"whenRange\":{\"low\":{\"value\":78,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":82,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"Breast Cancer\"},\"probabilityDecimal\":0.001663,\"whenRange\":{\"low\":{\"value\":83,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":88,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}}],\"note\":[{\"text\":\"High degree of certainty\"}],\"meta\":{\"tag\":[{\"system\":\"http://terminology.hl7.org/CodeSystem/v3-ActReason\",\"code\":\"HTEST\",\"display\":\"test health data\"}],\"versionId\":\"1\",\"lastUpdated\":\"2022-02-13T22:30:19.207+08:00\"}}'",
            "label": "cURL"
          },
          {
            "lang": "JavaScript",
            "source": " //example from: https://chinlinlee.github.io/Burni/assets/FHIR/fhir-resource-examples/riskassessment-example.json\nconst axios = require('axios');\nconst data = {\"resourceType\":\"RiskAssessment\",\"id\":\"d85cccbb-4de2-4fa9-8cb7-6bf77c10909f\",\"status\":\"final\",\"method\":{\"coding\":[{\"code\":\"BRCAPRO\"}]},\"subject\":{\"reference\":\"Patient/b248b1b2-1686-4b94-9936-37d7a5f94b51\"},\"occurrenceDateTime\":\"2006-01-14T07:01:00+08:00\",\"basis\":[{\"reference\":\"List/prognosis\"}],\"prediction\":[{\"outcome\":{\"text\":\"Breast Cancer\"},\"probabilityDecimal\":0.000168,\"whenRange\":{\"high\":{\"value\":53,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"Breast Cancer\"},\"probabilityDecimal\":0.000368,\"whenRange\":{\"low\":{\"value\":54,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":57,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"Breast Cancer\"},\"probabilityDecimal\":0.000594,\"whenRange\":{\"low\":{\"value\":58,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":62,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"Breast Cancer\"},\"probabilityDecimal\":0.000838,\"whenRange\":{\"low\":{\"value\":63,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":67,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"Breast Cancer\"},\"probabilityDecimal\":0.001089,\"whenRange\":{\"low\":{\"value\":68,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":72,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"Breast Cancer\"},\"probabilityDecimal\":0.001327,\"whenRange\":{\"low\":{\"value\":73,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":77,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"Breast Cancer\"},\"probabilityDecimal\":0.00153,\"whenRange\":{\"low\":{\"value\":78,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":82,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"Breast Cancer\"},\"probabilityDecimal\":0.001663,\"whenRange\":{\"low\":{\"value\":83,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":88,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}}],\"note\":[{\"text\":\"High degree of certainty\"}],\"meta\":{\"tag\":[{\"system\":\"http://terminology.hl7.org/CodeSystem/v3-ActReason\",\"code\":\"HTEST\",\"display\":\"test health data\"}],\"versionId\":\"1\",\"lastUpdated\":\"2022-02-13T22:30:19.207+08:00\"}}\nconst config = {\n    method: 'post',\n    url: 'http://burni.example.com/fhir/RiskAssessment',\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/RiskAssessment/{id}": {
      "delete": {
        "operationId": "deleteRiskAssessment",
        "tags": [
          "RiskAssessment"
        ],
        "summary": "delete RiskAssessment 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 RiskAssessment/d85cccbb-4de2-4fa9-8cb7-6bf77c10909f 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 RiskAssessment/d85cccbb-4de2-4fa9-8cb7-6bf77c10909f 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->d85cccbb-4de2-4fa9-8cb7-6bf77c10909f not found in RiskAssessment 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;d85cccbb-4de2-4fa9-8cb7-6bf77c10909f  not found in RiskAssessment resource'/>\n    </issue>\n</OperationOutcome>"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "source": "#example from: https://chinlinlee.github.io/Burni/assets/FHIR/fhir-resource-examples/riskassessment-example.json\ncurl --location --request DELETE 'http://burni.example.com/fhir/RiskAssessment/d85cccbb-4de2-4fa9-8cb7-6bf77c10909f'",
            "label": "cURL"
          },
          {
            "lang": "JavaScript",
            "source": " //example from: https://chinlinlee.github.io/Burni/assets/FHIR/fhir-resource-examples/riskassessment-example.json\nconst axios = require('axios');\nconst config = {\n    method: 'delete',\n    url: 'http://burni.example.com/fhir/RiskAssessment/d85cccbb-4de2-4fa9-8cb7-6bf77c10909f'\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": "readRiskAssessment",
        "tags": [
          "RiskAssessment"
        ],
        "summary": "read RiskAssessment 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": "RiskAssessment",
                      "id": "d85cccbb-4de2-4fa9-8cb7-6bf77c10909f",
                      "status": "final",
                      "method": {
                        "coding": [
                          {
                            "code": "BRCAPRO"
                          }
                        ]
                      },
                      "subject": {
                        "reference": "Patient/b248b1b2-1686-4b94-9936-37d7a5f94b51"
                      },
                      "occurrenceDateTime": "2006-01-14T07:01:00+08:00",
                      "basis": [
                        {
                          "reference": "List/prognosis"
                        }
                      ],
                      "prediction": [
                        {
                          "outcome": {
                            "text": "Breast Cancer"
                          },
                          "probabilityDecimal": 0.000168,
                          "whenRange": {
                            "high": {
                              "value": 53,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "Breast Cancer"
                          },
                          "probabilityDecimal": 0.000368,
                          "whenRange": {
                            "low": {
                              "value": 54,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 57,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "Breast Cancer"
                          },
                          "probabilityDecimal": 0.000594,
                          "whenRange": {
                            "low": {
                              "value": 58,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 62,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "Breast Cancer"
                          },
                          "probabilityDecimal": 0.000838,
                          "whenRange": {
                            "low": {
                              "value": 63,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 67,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "Breast Cancer"
                          },
                          "probabilityDecimal": 0.001089,
                          "whenRange": {
                            "low": {
                              "value": 68,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 72,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "Breast Cancer"
                          },
                          "probabilityDecimal": 0.001327,
                          "whenRange": {
                            "low": {
                              "value": 73,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 77,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "Breast Cancer"
                          },
                          "probabilityDecimal": 0.00153,
                          "whenRange": {
                            "low": {
                              "value": 78,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 82,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "Breast Cancer"
                          },
                          "probabilityDecimal": 0.001663,
                          "whenRange": {
                            "low": {
                              "value": 83,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 88,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        }
                      ],
                      "note": [
                        {
                          "text": "High degree of certainty"
                        }
                      ],
                      "meta": {
                        "tag": [
                          {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                            "code": "HTEST",
                            "display": "test health data"
                          }
                        ],
                        "versionId": "1",
                        "lastUpdated": "2022-02-13T22:30:19.207+08:00"
                      }
                    }
                  }
                }
              },
              "application/fhir+xml": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  },
                  "xml": {
                    "name": "RiskAssessment"
                  }
                },
                "examples": {
                  "Success-Response-XML": {
                    "value": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><RiskAssessment xmlns=\"http://hl7.org/fhir\"><id value=\"a93ebbff-f68b-4ee3-b180-2fe8d820e413\"/><meta><versionId value=\"1\"/><lastUpdated value=\"2022-02-17T17:34:55.999+08:00\"/><tag><system value=\"http://terminology.hl7.org/CodeSystem/v3-ActReason\"/><code value=\"HTEST\"/><display value=\"test health data\"/></tag></meta><status value=\"final\"/><method><coding><code value=\"BRCAPRO\"/></coding></method><subject><reference value=\"Patient/b248b1b2-1686-4b94-9936-37d7a5f94b51\"/></subject><occurrenceDateTime value=\"2006-01-14T07:01:00+08:00\"/><basis><reference value=\"List/prognosis\"/></basis><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.000168\"/><whenRange><high><value value=\"53\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.000368\"/><whenRange><low><value value=\"54\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"57\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.000594\"/><whenRange><low><value value=\"58\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"62\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.000838\"/><whenRange><low><value value=\"63\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"67\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.001089\"/><whenRange><low><value value=\"68\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"72\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.001327\"/><whenRange><low><value value=\"73\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"77\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.00153\"/><whenRange><low><value value=\"78\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"82\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.001663\"/><whenRange><low><value value=\"83\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"88\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><note><text value=\"High degree of certainty\"/></note></RiskAssessment>"
                  }
                }
              }
            }
          },
          "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 RiskAssessment/d85cccbb-4de2-4fa9-8cb7-6bf77c10909f"
                        }
                      ]
                    }
                  }
                }
              },
              "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 RiskAssessment/d85cccbb-4de2-4fa9-8cb7-6bf77c10909f'/>\n</issue>\n</OperationOutcome>"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "source": "#example from: https://chinlinlee.github.io/Burni/assets/FHIR/fhir-resource-examples/riskassessment-example.json\ncurl --location --request GET 'http://burni.example.com/fhir/RiskAssessment/d85cccbb-4de2-4fa9-8cb7-6bf77c10909f'",
            "label": "cURL"
          },
          {
            "lang": "JavaScript",
            "source": " //example from: https://chinlinlee.github.io/Burni/assets/FHIR/fhir-resource-examples/riskassessment-example.json\nconst axios = require('axios');\nconst config = {\n    method: 'get',\n    url: 'http://burni.example.com/fhir/RiskAssessment/d85cccbb-4de2-4fa9-8cb7-6bf77c10909f'\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": "updateRiskAssessment",
        "tags": [
          "RiskAssessment"
        ],
        "summary": "update RiskAssessment 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/updateRiskAssessment"
              },
              "examples": {
                "json-example": {
                  "value": {
                    "resourceType": "RiskAssessment",
                    "id": "genetic",
                    "text": {
                      "status": "generated",
                      "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p>Probability of developing breast cancer before the age indicated:</p>\n      <table>\n        <thead>\n          <tr>\n            <th>Age</th>\n            <th>Probability (%)</th>\n          </tr>\n        </thead>\n        <tbody>\n          <tr>\n            <td>current-53</td>\n            <td>0.0168</td>\n          </tr>\n          <tr>\n            <td>54-57</td>\n            <td>0.0368</td>\n          </tr>\n          <tr>\n            <td>58-62</td>\n            <td>0.0594</td>\n          </tr>\n          <tr>\n            <td>63-67</td>\n            <td>0.0838</td>\n          </tr>\n          <tr>\n            <td>68-72</td>\n            <td>0.1089</td>\n          </tr>\n          <tr>\n            <td>73-77</td>\n            <td>0.1327</td>\n          </tr>\n          <tr>\n            <td>78-82</td>\n            <td>0.1530</td>\n          </tr>\n          <tr>\n            <td>83-87</td>\n            <td>0.1663</td>\n          </tr>\n        </tbody>\n      </table>\n    </div>"
                    },
                    "status": "final",
                    "method": {
                      "coding": [
                        {
                          "code": "BRCAPRO"
                        }
                      ]
                    },
                    "subject": {
                      "reference": "Patient/b248b1b2-1686-4b94-9936-37d7a5f94b51"
                    },
                    "occurrenceDateTime": "2006-01-13T23:01:00Z",
                    "basis": [
                      {
                        "reference": "List/prognosis"
                      }
                    ],
                    "prediction": [
                      {
                        "outcome": {
                          "text": "HnIzeE3T6WH3Qns"
                        },
                        "probabilityDecimal": 0.000168,
                        "whenRange": {
                          "high": {
                            "value": 423,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          }
                        }
                      },
                      {
                        "outcome": {
                          "text": "OVpiAnwz4dmTARE"
                        },
                        "probabilityDecimal": 0.000368,
                        "whenRange": {
                          "low": {
                            "value": 98099,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          },
                          "high": {
                            "value": 20316,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          }
                        }
                      },
                      {
                        "outcome": {
                          "text": "TnLmabXN0gBQ6j"
                        },
                        "probabilityDecimal": 0.000594,
                        "whenRange": {
                          "low": {
                            "value": 26027,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          },
                          "high": {
                            "value": 19253,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          }
                        }
                      },
                      {
                        "outcome": {
                          "text": "srHwPZUWx91PhTNQA"
                        },
                        "probabilityDecimal": 0.000838,
                        "whenRange": {
                          "low": {
                            "value": 44472,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          },
                          "high": {
                            "value": 86570,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          }
                        }
                      },
                      {
                        "outcome": {
                          "text": "ner1cunKl33pzsaQ"
                        },
                        "probabilityDecimal": 0.001089,
                        "whenRange": {
                          "low": {
                            "value": 7890,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          },
                          "high": {
                            "value": 87291,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          }
                        }
                      },
                      {
                        "outcome": {
                          "text": "MYjU4bwZtDjF"
                        },
                        "probabilityDecimal": 0.001327,
                        "whenRange": {
                          "low": {
                            "value": 60003,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          },
                          "high": {
                            "value": 20357,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          }
                        }
                      },
                      {
                        "outcome": {
                          "text": "Ai2FA1RovdH6c"
                        },
                        "probabilityDecimal": 0.00153,
                        "whenRange": {
                          "low": {
                            "value": 78011,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          },
                          "high": {
                            "value": 16343,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          }
                        }
                      },
                      {
                        "outcome": {
                          "text": "lqgt90eppkw2"
                        },
                        "probabilityDecimal": 0.001663,
                        "whenRange": {
                          "low": {
                            "value": 87705,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          },
                          "high": {
                            "value": 34805,
                            "unit": "years",
                            "system": "http://unitsofmeasure.org",
                            "code": "a"
                          }
                        }
                      }
                    ],
                    "note": [
                      {
                        "text": "COzrSz0i4TWua4wN9TJ"
                      }
                    ],
                    "meta": {
                      "tag": [
                        {
                          "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                          "code": "HTEST",
                          "display": "LepMfDhKSK9"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "application/fhir+xml": {
              "schema": {
                "$ref": "#/components/schemas/updateRiskAssessment",
                "xml": {
                  "name": "RiskAssessment"
                }
              },
              "examples": {
                "xml-example": {
                  "value": "\n<?xml version=\"1.0\" encoding=\"UTF-8\"?><RiskAssessment xmlns=\"http://hl7.org/fhir\"><id value=\"genetic\"/><meta><tag><system value=\"http://terminology.hl7.org/CodeSystem/v3-ActReason\"/><code value=\"HTEST\"/><display value=\"LepMfDhKSK9\"/></tag></meta><text><status value=\"generated\"/><div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Probability of developing breast cancer before the age indicated:</p><table><thead><tr><th>Age</th><th>Probability (%)</th></tr></thead><tbody><tr><td>current-53</td><td>0.0168</td></tr><tr><td>54-57</td><td>0.0368</td></tr><tr><td>58-62</td><td>0.0594</td></tr><tr><td>63-67</td><td>0.0838</td></tr><tr><td>68-72</td><td>0.1089</td></tr><tr><td>73-77</td><td>0.1327</td></tr><tr><td>78-82</td><td>0.1530</td></tr><tr><td>83-87</td><td>0.1663</td></tr></tbody></table></div></text><status value=\"final\"/><method><coding><code value=\"BRCAPRO\"/></coding></method><subject><reference value=\"Patient/b248b1b2-1686-4b94-9936-37d7a5f94b51\"/></subject><occurrenceDateTime value=\"2006-01-13T23:01:00Z\"/><basis><reference value=\"List/prognosis\"/></basis><prediction><outcome><text value=\"HnIzeE3T6WH3Qns\"/></outcome><probabilityDecimal value=\"0.000168\"/><whenRange><high><value value=\"423\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"OVpiAnwz4dmTARE\"/></outcome><probabilityDecimal value=\"0.000368\"/><whenRange><low><value value=\"98099\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"20316\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"TnLmabXN0gBQ6j\"/></outcome><probabilityDecimal value=\"0.000594\"/><whenRange><low><value value=\"26027\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"19253\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"srHwPZUWx91PhTNQA\"/></outcome><probabilityDecimal value=\"0.000838\"/><whenRange><low><value value=\"44472\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"86570\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"ner1cunKl33pzsaQ\"/></outcome><probabilityDecimal value=\"0.001089\"/><whenRange><low><value value=\"7890\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"87291\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"MYjU4bwZtDjF\"/></outcome><probabilityDecimal value=\"0.001327\"/><whenRange><low><value value=\"60003\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"20357\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Ai2FA1RovdH6c\"/></outcome><probabilityDecimal value=\"0.00153\"/><whenRange><low><value value=\"78011\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"16343\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"lqgt90eppkw2\"/></outcome><probabilityDecimal value=\"0.001663\"/><whenRange><low><value value=\"87705\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"34805\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><note><text value=\"COzrSz0i4TWua4wN9TJ\"/></note></RiskAssessment>"
                }
              }
            }
          }
        },
        "description": "update RiskAssessment 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": "RiskAssessment",
                      "id": "RiskAssessment-example",
                      "status": "final",
                      "method": {
                        "coding": [
                          {
                            "code": "BRCAPRO"
                          }
                        ]
                      },
                      "subject": {
                        "reference": "Patient/b248b1b2-1686-4b94-9936-37d7a5f94b51"
                      },
                      "occurrenceDateTime": "2006-01-14T07:01:00+08:00",
                      "basis": [
                        {
                          "reference": "List/prognosis"
                        }
                      ],
                      "prediction": [
                        {
                          "outcome": {
                            "text": "HnIzeE3T6WH3Qns"
                          },
                          "probabilityDecimal": 0.000168,
                          "whenRange": {
                            "high": {
                              "value": 423,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "OVpiAnwz4dmTARE"
                          },
                          "probabilityDecimal": 0.000368,
                          "whenRange": {
                            "low": {
                              "value": 98099,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 20316,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "TnLmabXN0gBQ6j"
                          },
                          "probabilityDecimal": 0.000594,
                          "whenRange": {
                            "low": {
                              "value": 26027,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 19253,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "srHwPZUWx91PhTNQA"
                          },
                          "probabilityDecimal": 0.000838,
                          "whenRange": {
                            "low": {
                              "value": 44472,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 86570,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "ner1cunKl33pzsaQ"
                          },
                          "probabilityDecimal": 0.001089,
                          "whenRange": {
                            "low": {
                              "value": 7890,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 87291,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "MYjU4bwZtDjF"
                          },
                          "probabilityDecimal": 0.001327,
                          "whenRange": {
                            "low": {
                              "value": 60003,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 20357,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "Ai2FA1RovdH6c"
                          },
                          "probabilityDecimal": 0.00153,
                          "whenRange": {
                            "low": {
                              "value": 78011,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 16343,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        },
                        {
                          "outcome": {
                            "text": "lqgt90eppkw2"
                          },
                          "probabilityDecimal": 0.001663,
                          "whenRange": {
                            "low": {
                              "value": 87705,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            },
                            "high": {
                              "value": 34805,
                              "unit": "years",
                              "system": "http://unitsofmeasure.org",
                              "code": "a"
                            }
                          }
                        }
                      ],
                      "note": [
                        {
                          "text": "COzrSz0i4TWua4wN9TJ"
                        }
                      ],
                      "meta": {
                        "versionId": "20",
                        "lastUpdated": "2022-02-17T23:28:39.975+08:00"
                      }
                    }
                  }
                }
              },
              "application/fhir+xml": {
                "schema": {
                  "type": "object",
                  "items": {
                    "$ref": "#/components/schemas/FHIR-XML-RESOURCE"
                  },
                  "xml": {
                    "name": "RiskAssessment"
                  }
                },
                "examples": {
                  "xml-example": {
                    "value": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><RiskAssessment xmlns=\"http://hl7.org/fhir\"><id value=\"RiskAssessment-example\"/><meta><versionId value=\"22\"/><lastUpdated value=\"2022-02-18T00:39:53.972+08:00\"/></meta><status value=\"final\"/><method><coding><code value=\"BRCAPRO\"/></coding></method><subject><reference value=\"Patient/b248b1b2-1686-4b94-9936-37d7a5f94b51\"/></subject><occurrenceDateTime value=\"2006-01-14T07:01:00+08:00\"/><basis><reference value=\"List/prognosis\"/></basis><prediction><outcome><text value=\"HnIzeE3T6WH3Qns\"/></outcome><probabilityDecimal value=\"0.000168\"/><whenRange><high><value value=\"423\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"OVpiAnwz4dmTARE\"/></outcome><probabilityDecimal value=\"0.000368\"/><whenRange><low><value value=\"98099\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"20316\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"TnLmabXN0gBQ6j\"/></outcome><probabilityDecimal value=\"0.000594\"/><whenRange><low><value value=\"26027\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"19253\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"srHwPZUWx91PhTNQA\"/></outcome><probabilityDecimal value=\"0.000838\"/><whenRange><low><value value=\"44472\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"86570\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"ner1cunKl33pzsaQ\"/></outcome><probabilityDecimal value=\"0.001089\"/><whenRange><low><value value=\"7890\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"87291\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"MYjU4bwZtDjF\"/></outcome><probabilityDecimal value=\"0.001327\"/><whenRange><low><value value=\"60003\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"20357\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Ai2FA1RovdH6c\"/></outcome><probabilityDecimal value=\"0.00153\"/><whenRange><low><value value=\"78011\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"16343\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"lqgt90eppkw2\"/></outcome><probabilityDecimal value=\"0.001663\"/><whenRange><low><value value=\"87705\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"34805\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><note><text value=\"COzrSz0i4TWua4wN9TJ\"/></note></RiskAssessment>"
                  }
                }
              }
            }
          },
          "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/riskassessment-example.json\ncurl --location --request PUT 'http://burni.example.com/fhir/RiskAssessment/RiskAssessment-example \\' \n--header 'Content-Type: application/fhir+json' \\\n--data-raw '{\"resourceType\":\"RiskAssessment\",\"id\":\"genetic\",\"text\":{\"status\":\"generated\",\"div\":\"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\">\\n      <p>Probability of developing breast cancer before the age indicated:</p>\\n      <table>\\n        <thead>\\n          <tr>\\n            <th>Age</th>\\n            <th>Probability (%)</th>\\n          </tr>\\n        </thead>\\n        <tbody>\\n          <tr>\\n            <td>current-53</td>\\n            <td>0.0168</td>\\n          </tr>\\n          <tr>\\n            <td>54-57</td>\\n            <td>0.0368</td>\\n          </tr>\\n          <tr>\\n            <td>58-62</td>\\n            <td>0.0594</td>\\n          </tr>\\n          <tr>\\n            <td>63-67</td>\\n            <td>0.0838</td>\\n          </tr>\\n          <tr>\\n            <td>68-72</td>\\n            <td>0.1089</td>\\n          </tr>\\n          <tr>\\n            <td>73-77</td>\\n            <td>0.1327</td>\\n          </tr>\\n          <tr>\\n            <td>78-82</td>\\n            <td>0.1530</td>\\n          </tr>\\n          <tr>\\n            <td>83-87</td>\\n            <td>0.1663</td>\\n          </tr>\\n        </tbody>\\n      </table>\\n    </div>\"},\"status\":\"final\",\"method\":{\"coding\":[{\"code\":\"BRCAPRO\"}]},\"subject\":{\"reference\":\"Patient/b248b1b2-1686-4b94-9936-37d7a5f94b51\"},\"occurrenceDateTime\":\"2006-01-13T23:01:00Z\",\"basis\":[{\"reference\":\"List/prognosis\"}],\"prediction\":[{\"outcome\":{\"text\":\"HnIzeE3T6WH3Qns\"},\"probabilityDecimal\":0.000168,\"whenRange\":{\"high\":{\"value\":423,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"OVpiAnwz4dmTARE\"},\"probabilityDecimal\":0.000368,\"whenRange\":{\"low\":{\"value\":98099,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":20316,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"TnLmabXN0gBQ6j\"},\"probabilityDecimal\":0.000594,\"whenRange\":{\"low\":{\"value\":26027,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":19253,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"srHwPZUWx91PhTNQA\"},\"probabilityDecimal\":0.000838,\"whenRange\":{\"low\":{\"value\":44472,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":86570,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"ner1cunKl33pzsaQ\"},\"probabilityDecimal\":0.001089,\"whenRange\":{\"low\":{\"value\":7890,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":87291,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"MYjU4bwZtDjF\"},\"probabilityDecimal\":0.001327,\"whenRange\":{\"low\":{\"value\":60003,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":20357,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"Ai2FA1RovdH6c\"},\"probabilityDecimal\":0.00153,\"whenRange\":{\"low\":{\"value\":78011,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":16343,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"lqgt90eppkw2\"},\"probabilityDecimal\":0.001663,\"whenRange\":{\"low\":{\"value\":87705,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":34805,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}}],\"note\":[{\"text\":\"COzrSz0i4TWua4wN9TJ\"}],\"meta\":{\"tag\":[{\"system\":\"http://terminology.hl7.org/CodeSystem/v3-ActReason\",\"code\":\"HTEST\",\"display\":\"LepMfDhKSK9\"}]}}'",
            "label": "cURL"
          },
          {
            "lang": "JavaScript",
            "source": " //example from: https://chinlinlee.github.io/Burni/assets/FHIR/fhir-resource-examples/riskassessment-example.json\nconst axios = require('axios');\nconst data = {\"resourceType\":\"RiskAssessment\",\"id\":\"RiskAssessment-example\",\"status\":\"final\",\"method\":{\"coding\":[{\"code\":\"BRCAPRO\"}]},\"subject\":{\"reference\":\"Patient/b248b1b2-1686-4b94-9936-37d7a5f94b51\"},\"occurrenceDateTime\":\"2006-01-14T07:01:00+08:00\",\"basis\":[{\"reference\":\"List/prognosis\"}],\"prediction\":[{\"outcome\":{\"text\":\"HnIzeE3T6WH3Qns\"},\"probabilityDecimal\":0.000168,\"whenRange\":{\"high\":{\"value\":423,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"OVpiAnwz4dmTARE\"},\"probabilityDecimal\":0.000368,\"whenRange\":{\"low\":{\"value\":98099,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":20316,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"TnLmabXN0gBQ6j\"},\"probabilityDecimal\":0.000594,\"whenRange\":{\"low\":{\"value\":26027,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":19253,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"srHwPZUWx91PhTNQA\"},\"probabilityDecimal\":0.000838,\"whenRange\":{\"low\":{\"value\":44472,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":86570,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"ner1cunKl33pzsaQ\"},\"probabilityDecimal\":0.001089,\"whenRange\":{\"low\":{\"value\":7890,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":87291,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"MYjU4bwZtDjF\"},\"probabilityDecimal\":0.001327,\"whenRange\":{\"low\":{\"value\":60003,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":20357,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"Ai2FA1RovdH6c\"},\"probabilityDecimal\":0.00153,\"whenRange\":{\"low\":{\"value\":78011,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":16343,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}},{\"outcome\":{\"text\":\"lqgt90eppkw2\"},\"probabilityDecimal\":0.001663,\"whenRange\":{\"low\":{\"value\":87705,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"},\"high\":{\"value\":34805,\"unit\":\"years\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"a\"}}}],\"note\":[{\"text\":\"COzrSz0i4TWua4wN9TJ\"}],\"meta\":{\"versionId\":\"20\",\"lastUpdated\":\"2022-02-17T23:28:39.975+08:00\"}}\nconst config = {\n    method: 'put',\n    url: 'http://burni.example.com/fhir/RiskAssessment/RiskAssessment-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/RiskAssessment/": {
      "get": {
        "operationId": "search-typeRiskAssessment",
        "tags": [
          "RiskAssessment"
        ],
        "summary": "search-type RiskAssessment resource by id.",
        "parameters": [
          {
            "name": "condition",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Condition assessed"
          },
          {
            "name": "encounter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Where was assessment performed?"
          },
          {
            "name": "identifier",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Unique identifier for the assessment"
          },
          {
            "name": "method",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Evaluation mechanism"
          },
          {
            "name": "patient",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Who/what does assessment apply to?"
          },
          {
            "name": "performer",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Who did assessment?"
          },
          {
            "name": "probability",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Likelihood of specified outcome"
          },
          {
            "name": "risk",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Likelihood of specified outcome as a qualitative value"
          },
          {
            "name": "subject",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Who/what does assessment apply to?"
          }
        ],
        "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/RiskAssessment?_offset=0&_count=100"
                        }
                      ],
                      "entry": [
                        {
                          "fullUrl": "http://burni.example.com/fhir/RiskAssessment/d85cccbb-4de2-4fa9-8cb7-6bf77c10909f",
                          "resource": {
                            "resourceType": "RiskAssessment",
                            "id": "d85cccbb-4de2-4fa9-8cb7-6bf77c10909f",
                            "status": "final",
                            "method": {
                              "coding": [
                                {
                                  "code": "BRCAPRO"
                                }
                              ]
                            },
                            "subject": {
                              "reference": "Patient/b248b1b2-1686-4b94-9936-37d7a5f94b51"
                            },
                            "occurrenceDateTime": "2006-01-14T07:01:00+08:00",
                            "basis": [
                              {
                                "reference": "List/prognosis"
                              }
                            ],
                            "prediction": [
                              {
                                "outcome": {
                                  "text": "Breast Cancer"
                                },
                                "probabilityDecimal": 0.000168,
                                "whenRange": {
                                  "high": {
                                    "value": 53,
                                    "unit": "years",
                                    "system": "http://unitsofmeasure.org",
                                    "code": "a"
                                  }
                                }
                              },
                              {
                                "outcome": {
                                  "text": "Breast Cancer"
                                },
                                "probabilityDecimal": 0.000368,
                                "whenRange": {
                                  "low": {
                                    "value": 54,
                                    "unit": "years",
                                    "system": "http://unitsofmeasure.org",
                                    "code": "a"
                                  },
                                  "high": {
                                    "value": 57,
                                    "unit": "years",
                                    "system": "http://unitsofmeasure.org",
                                    "code": "a"
                                  }
                                }
                              },
                              {
                                "outcome": {
                                  "text": "Breast Cancer"
                                },
                                "probabilityDecimal": 0.000594,
                                "whenRange": {
                                  "low": {
                                    "value": 58,
                                    "unit": "years",
                                    "system": "http://unitsofmeasure.org",
                                    "code": "a"
                                  },
                                  "high": {
                                    "value": 62,
                                    "unit": "years",
                                    "system": "http://unitsofmeasure.org",
                                    "code": "a"
                                  }
                                }
                              },
                              {
                                "outcome": {
                                  "text": "Breast Cancer"
                                },
                                "probabilityDecimal": 0.000838,
                                "whenRange": {
                                  "low": {
                                    "value": 63,
                                    "unit": "years",
                                    "system": "http://unitsofmeasure.org",
                                    "code": "a"
                                  },
                                  "high": {
                                    "value": 67,
                                    "unit": "years",
                                    "system": "http://unitsofmeasure.org",
                                    "code": "a"
                                  }
                                }
                              },
                              {
                                "outcome": {
                                  "text": "Breast Cancer"
                                },
                                "probabilityDecimal": 0.001089,
                                "whenRange": {
                                  "low": {
                                    "value": 68,
                                    "unit": "years",
                                    "system": "http://unitsofmeasure.org",
                                    "code": "a"
                                  },
                                  "high": {
                                    "value": 72,
                                    "unit": "years",
                                    "system": "http://unitsofmeasure.org",
                                    "code": "a"
                                  }
                                }
                              },
                              {
                                "outcome": {
                                  "text": "Breast Cancer"
                                },
                                "probabilityDecimal": 0.001327,
                                "whenRange": {
                                  "low": {
                                    "value": 73,
                                    "unit": "years",
                                    "system": "http://unitsofmeasure.org",
                                    "code": "a"
                                  },
                                  "high": {
                                    "value": 77,
                                    "unit": "years",
                                    "system": "http://unitsofmeasure.org",
                                    "code": "a"
                                  }
                                }
                              },
                              {
                                "outcome": {
                                  "text": "Breast Cancer"
                                },
                                "probabilityDecimal": 0.00153,
                                "whenRange": {
                                  "low": {
                                    "value": 78,
                                    "unit": "years",
                                    "system": "http://unitsofmeasure.org",
                                    "code": "a"
                                  },
                                  "high": {
                                    "value": 82,
                                    "unit": "years",
                                    "system": "http://unitsofmeasure.org",
                                    "code": "a"
                                  }
                                }
                              },
                              {
                                "outcome": {
                                  "text": "Breast Cancer"
                                },
                                "probabilityDecimal": 0.001663,
                                "whenRange": {
                                  "low": {
                                    "value": 83,
                                    "unit": "years",
                                    "system": "http://unitsofmeasure.org",
                                    "code": "a"
                                  },
                                  "high": {
                                    "value": 88,
                                    "unit": "years",
                                    "system": "http://unitsofmeasure.org",
                                    "code": "a"
                                  }
                                }
                              }
                            ],
                            "note": [
                              {
                                "text": "High degree of certainty"
                              }
                            ],
                            "meta": {
                              "tag": [
                                {
                                  "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                                  "code": "HTEST",
                                  "display": "test health data"
                                }
                              ],
                              "versionId": "1",
                              "lastUpdated": "2022-02-13T22:30:19.207+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/RiskAssessment?_offset=0&amp;_count=100\"/>\n    </link>\n    <entry>\n        <fullUrl value=\"http://burni.example.com/fhir/RiskAssessment/d85cccbb-4de2-4fa9-8cb7-6bf77c10909f\"/>\n        <resource>\n            <?xml version=\"1.0\" encoding=\"UTF-8\"?><RiskAssessment xmlns=\"http://hl7.org/fhir\"><id value=\"a93ebbff-f68b-4ee3-b180-2fe8d820e413\"/><meta><versionId value=\"1\"/><lastUpdated value=\"2022-02-17T17:34:55.999+08:00\"/><tag><system value=\"http://terminology.hl7.org/CodeSystem/v3-ActReason\"/><code value=\"HTEST\"/><display value=\"test health data\"/></tag></meta><status value=\"final\"/><method><coding><code value=\"BRCAPRO\"/></coding></method><subject><reference value=\"Patient/b248b1b2-1686-4b94-9936-37d7a5f94b51\"/></subject><occurrenceDateTime value=\"2006-01-14T07:01:00+08:00\"/><basis><reference value=\"List/prognosis\"/></basis><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.000168\"/><whenRange><high><value value=\"53\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.000368\"/><whenRange><low><value value=\"54\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"57\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.000594\"/><whenRange><low><value value=\"58\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"62\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.000838\"/><whenRange><low><value value=\"63\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"67\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.001089\"/><whenRange><low><value value=\"68\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"72\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.001327\"/><whenRange><low><value value=\"73\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"77\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.00153\"/><whenRange><low><value value=\"78\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"82\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><prediction><outcome><text value=\"Breast Cancer\"/></outcome><probabilityDecimal value=\"0.001663\"/><whenRange><low><value value=\"83\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></low><high><value value=\"88\"/><unit value=\"years\"/><system value=\"http://unitsofmeasure.org\"/><code value=\"a\"/></high></whenRange></prediction><note><text value=\"High degree of certainty\"/></note></RiskAssessment>\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/RiskAssessment?_offset=0&amp;_count=100\"/>\n    </link>\n</Bundle>"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "source": "curl --location --request GET 'http://burni.example.com/fhir/RiskAssessment'",
            "label": "cURL"
          },
          {
            "lang": "JavaScript",
            "source": "const axios = require('axios');\nconst config = {\n    method: 'get',\n    url: 'http://burni.example.com/fhir/RiskAssessment'\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": {
      "createRiskAssessment": {
        "properties": {
          "resourceType": {
            "type": "string",
            "description": ""
          }
        },
        "required": [
          "resourceType"
        ]
      },
      "FHIR-JSON-RESOURCE": {
        "properties": {}
      },
      "FHIR-XML-RESOURCE": {
        "properties": {}
      },
      "deleteRiskAssessment": {
        "properties": {
          "id": {
            "type": "string",
            "description": "Resource ID in server"
          }
        },
        "required": [
          "id"
        ]
      },
      "readRiskAssessment": {
        "properties": {
          "id": {
            "type": "string",
            "description": "Resource ID in server"
          }
        },
        "required": [
          "id"
        ]
      },
      "updateRiskAssessment": {
        "properties": {
          "id": {
            "type": "string",
            "description": "Resource ID that you want to update"
          },
          "resourceType": {
            "type": "string",
            "description": ""
          }
        },
        "required": [
          "id",
          "resourceType"
        ]
      }
    }
  }
}