createtriage

CreateTriageInfo Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "patientId": {
      "type": "string"
    },
    "latitude": {
      "type": "number"
    },
    "longitude": {
      "type": "number"
    },
    "estimatedRadius": {
      "type": "number"
    },
    "location": {
      "type": "string",
      "enum": [
        "Incident",
        "CasualtyAssembly",
        "CasualtyTreatment",
        "CasualtyDecontamination",
        "MedicalTransport",
        "Release"
      ]
    },
    "classification": {
      "type": "string",
      "enum": [
        "Green",
        "Yellow",
        "Red",
        "Black",
        "Blue"
      ]
    },
    "subClassification": {
      "type": "string",
      "enum": [
        "SpontaneousBreathing",
        "LockedAirways",
        "Hyperventilation",
        "InhalationTrauma",
        "CapillaryRefillTime",
        "RadialisPulseNotPalpable",
        "SevereBleeding",
        "PuFailed"
      ]
    },
    "measures": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "TourniquetAttached",
          "AirwaysOpened",
          "ThoracicPuncture"
        ]
      }
    },
    "remarks": {
      "type": "string"
    },
    "isClamped": {
      "type": "boolean"
    },
    "patient": {
      "type": "object",
      "properties": {
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "gender": {
          "type": "string"
        },
        "age": {
          "type": "number"
        },
        "preExistingHealthConditions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "firstName",
        "lastName",
        "gender",
        "age",
        "preExistingHealthConditions"
      ]
    },
    "timeInfo": {
      "type": "object",
      "properties": {
        "onQrCodeScanned": {
          "type": "number"
        },
        "onTriageStarted": {
          "type": "number"
        },
        "onChildAdultSelected": {
          "type": "number"
        },
        "onAgeSelected": {
          "type": "number"
        },
        "onGenderSelected": {
          "type": "number"
        },
        "onClassificationSelected": {
          "type": "number"
        },
        "onTriageCompleted": {
          "type": "number"
        }
      }
    },
    "createdOn": {
      "type": "number"
    }
  },
  "required": [
    "patientId",
    "latitude",
    "longitude",
    "estimatedRadius",
    "location",
    "classification",
    "subClassification",
    "measures",
    "remarks",
    "isClamped",
    "createdOn"
  ]
}

CreatePatientInfo Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "firstName": {
      "type": "string"
    },
    "lastName": {
      "type": "string"
    },
    "gender": {
      "type": "string"
    },
    "age": {
      "type": "number"
    },
    "preExistingHealthConditions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "firstName",
    "lastName",
    "gender",
    "age",
    "preExistingHealthConditions"
  ]
}

CreateTriageTimeInfo Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "onQrCodeScanned": {
      "type": "number"
    },
    "onTriageStarted": {
      "type": "number"
    },
    "onChildAdultSelected": {
      "type": "number"
    },
    "onAgeSelected": {
      "type": "number"
    },
    "onGenderSelected": {
      "type": "number"
    },
    "onClassificationSelected": {
      "type": "number"
    },
    "onTriageCompleted": {
      "type": "number"
    }
  }
}