{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-patient-schema.json",
  "title": "Patient",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-provideraccessdavinciexportdownload-api-openapi.yml#/components/schemas/Patient",
  "type": "object",
  "properties": {
    "resourceType": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "text": {
      "$ref": "#/$defs/Narrative"
    },
    "identifier": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IdentifierWithType"
      }
    },
    "name": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/HumanName"
      }
    },
    "gender": {
      "type": "string"
    },
    "birthDate": {
      "type": "string"
    }
  },
  "$defs": {
    "CodeableConcept": {
      "type": "object",
      "properties": {
        "coding": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Coding"
          }
        }
      }
    },
    "Coding": {
      "type": "object",
      "properties": {
        "system": {
          "type": "string"
        },
        "code": {
          "type": "string"
        },
        "display": {
          "type": "string"
        }
      }
    },
    "HumanName": {
      "type": "object",
      "properties": {
        "use": {
          "type": "string"
        },
        "family": {
          "type": "string"
        },
        "given": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "IdentifierWithType": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/$defs/CodeableConcept"
        },
        "system": {
          "type": "string"
        },
        "value": {
          "type": "string"
        },
        "assigner": {
          "type": "object",
          "properties": {
            "display": {
              "type": "string"
            }
          }
        }
      }
    },
    "Narrative": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string"
        },
        "div": {
          "type": "string"
        }
      }
    }
  }
}