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.

Repository @hats.health did:plc:uvvhtareovj2oaregs7vsibv not from the namespace authority
Details · query
Kindquery
Authorityhats.health
Indexed
cid bafyreiecexybw46bub4h5zth3tel52edr6lb5ftazh2peuov42iqxudscy

Checks

Valid
JSONDownload
{
  "$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
}