{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anpheros-com/json-schema/anpheros-com-shl-in-schema.json",
  "title": "ShlIn",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anpheros-com-patient-me-api-openapi.yml#/components/schemas/ShlIn",
  "properties": {
    "content": {
      "type": "string",
      "enum": [
        "ips",
        "emergency",
        "custom"
      ],
      "title": "Content",
      "default": "emergency"
    },
    "include": {
      "anyOf": [
        {
          "$ref": "#/$defs/ShlInclude"
        },
        {
          "type": "null"
        }
      ]
    },
    "label": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 80
        },
        {
          "type": "null"
        }
      ],
      "title": "Label"
    },
    "lang": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 8
        },
        {
          "type": "null"
        }
      ],
      "title": "Lang"
    },
    "passcode": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64,
          "minLength": 4
        },
        {
          "type": "null"
        }
      ],
      "title": "Passcode"
    },
    "expires_in_days": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 3650.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires In Days"
    }
  },
  "type": "object",
  "$defs": {
    "ShlInclude": {
      "properties": {
        "sections": {
          "items": {
            "type": "string",
            "enum": [
              "allergies",
              "medications",
              "problems",
              "immunizations",
              "results",
              "vitals"
            ]
          },
          "type": "array",
          "maxItems": 6,
          "title": "Sections"
        },
        "results_since": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Results Since"
        },
        "observations": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 200,
          "title": "Observations"
        },
        "documents": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 20,
          "title": "Documents"
        },
        "imaging": {
          "type": "boolean",
          "title": "Imaging",
          "default": false
        },
        "specialties": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 19,
          "title": "Specialties"
        },
        "exclude": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 200,
          "title": "Exclude"
        },
        "current_medications": {
          "type": "boolean",
          "title": "Current Medications",
          "default": false
        }
      },
      "type": "object",
      "title": "ShlInclude"
    }
  }
}