health.hats.listAsks
Asks the caller made, as a patient, and was asked, as a clinician, newest first. Service auth, so each caller sees only their own.
Details · query
| Kind | query |
|---|---|
| Authority | hats.health |
| Indexed |
Checks
Validunlimited-stringdefs.ask.properties.answerNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.ask.properties.idNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.ask.properties.kindNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.ask.properties.statusNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"ask": {
"properties": {
"answer": {
"description": "The clinician's note, such as a declined amendment's reason.",
"type": "string"
},
"answeredAt": {
"format": "datetime",
"type": "string"
},
"clinician": {
"format": "did",
"type": "string"
},
"createdAt": {
"format": "datetime",
"type": "string"
},
"dueAt": {
"format": "datetime",
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"knownValues": [
"correct",
"verify"
],
"type": "string"
},
"patient": {
"format": "did",
"type": "string"
},
"status": {
"knownValues": [
"open",
"done",
"declined"
],
"type": "string"
},
"target": {
"format": "at-uri",
"type": "string"
},
"task": {
"format": "at-uri",
"type": "string"
}
},
"required": [
"id",
"patient",
"clinician",
"kind",
"target",
"task",
"createdAt",
"dueAt",
"status"
],
"type": "object"
},
"main": {
"description": "Asks the caller made, as a patient, and was asked, as a clinician, newest first. Service auth, so each caller sees only their own.",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"asks": {
"items": {
"ref": "#ask",
"type": "ref"
},
"type": "array"
}
},
"required": [
"asks"
],
"type": "object"
}
},
"type": "query"
}
},
"id": "health.hats.listAsks",
"lexicon": 1
}