{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ellkay/json-schema/ellkay-lkcloud-connect-swagger-swagger-requests-update-patient-update-patient-reporting-data-swagger-request-schema.json",
  "title": "LKCloudConnect.Swagger.SwaggerRequests.UpdatePatient.UpdatePatientReportingDataSwaggerRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ellkay-updatepatient-api-openapi.yml#/components/schemas/LKCloudConnect.Swagger.SwaggerRequests.UpdatePatient.UpdatePatientReportingDataSwaggerRequest",
  "type": "object",
  "properties": {
    "request": {
      "allOf": [
        {
          "$ref": "#/$defs/LKCloudConnect.Contracts.UpdatePatient.UpdatePatientReportingDataRequest"
        }
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "LKCloudConnect.Contracts.Bridge.ReportingFactor": {
      "type": "object",
      "properties": {
        "type": {
          "enum": [
            "Unknown",
            "AgriculturalWorker",
            "AgriculturalWorkerType",
            "ConsentToTreat",
            "GenderIdentity",
            "Homeless",
            "HomelessType",
            "LanguageBarrier",
            "ProcessingID",
            "PublicHousing",
            "SchoolBased",
            "SexualOrientation",
            "VeteranStatus",
            "FamilySize",
            "FamilySizeDeclined",
            "Handicap",
            "IncomeDeclined",
            "IncomePayPeriod",
            "LivingArrangement",
            "LivingDependency",
            "LivingWill",
            "MilitaryBranch",
            "MilitaryRank",
            "MilitaryStatus",
            "MultipleBirthIndicator",
            "OrganDonor",
            "PreferredPronoun",
            "YearlyIncome"
          ],
          "type": "string",
          "description": "Represents the standardized type of the factor."
        },
        "sourceName": {
          "type": "string",
          "description": "The original name or label of the factor as received from the source system."
        },
        "value": {
          "type": "string",
          "description": "The actual value of the factor as recorded in the source system."
        },
        "notes": {
          "type": "string",
          "description": "Additional notes or comments"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.UpdatePatient.UpdatePatientReportingDataRequest": {
      "required": [
        "patientId"
      ],
      "type": "object",
      "properties": {
        "patientId": {
          "minLength": 1,
          "type": "string",
          "description": "PatientId id"
        },
        "dateRecorded": {
          "type": "string",
          "description": "DateRecorded. (DateTimeOffset) e.g. 2019-01-01T00:00:00+00:00",
          "format": "date-time"
        },
        "factors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.ReportingFactor"
          },
          "description": "Factors"
        }
      },
      "additionalProperties": false
    }
  }
}