{
  "$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-swagger-request-schema.json",
  "title": "LKCloudConnect.Swagger.SwaggerRequests.UpdatePatientSwaggerRequest",
  "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.UpdatePatientSwaggerRequest",
  "type": "object",
  "properties": {
    "request": {
      "allOf": [
        {
          "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.UpdatePatientRequest"
        }
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "LKCloudConnect.Contracts.Bridge.CountryCode": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Country code"
        },
        "sourceText": {
          "type": "string",
          "description": "Any free text accompanying the system-specific code"
        },
        "source": {
          "type": "string",
          "description": "System-specific code"
        }
      },
      "additionalProperties": false,
      "description": "Country code"
    },
    "LKCloudConnect.Contracts.Bridge.DemographicUpdate": {
      "type": "object",
      "properties": {
        "updatePatientDetails": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.PatientDetailUpdate"
            }
          ],
          "description": "Patient"
        },
        "updatePrimaryInsurance": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.InsuranceUpdate"
            }
          ],
          "description": "Update primary insurance"
        },
        "updateSecondaryInsurance": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.InsuranceUpdate"
            }
          ],
          "description": "Update secondary insurance"
        },
        "guarantor": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.ResponsibleParty"
            }
          ],
          "description": "Guarantor\n\nThis object has been replaced by request.updatePatient.updatePatientDetails.financialResponsibleParty.\n\nIf both are present, the financialResponsibleParty object takes precedence and its values will override those in guarantor."
        },
        "provider": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.ProviderDetail"
            }
          ],
          "description": "Patient primary provider"
        },
        "referringProvider": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.ProviderDetail"
            }
          ],
          "description": "Patient referring provider"
        },
        "renderingProvider": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.ProviderDetail"
            }
          ],
          "description": "Patient rendering provider"
        },
        "primaryFacility": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.PrimaryFacility"
            }
          ],
          "description": "Patient primary facility"
        },
        "emergencyContactDetailReferences": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.EmergencyContactDetailReference"
          },
          "description": "Patient emergency contact details"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Bridge.EmergencyContactDetail": {
      "type": "object",
      "properties": {
        "address1": {
          "type": "string",
          "description": "Emergency contact address1"
        },
        "address2": {
          "type": "string",
          "description": "Emergency contact address2"
        },
        "city": {
          "type": "string",
          "description": "Emergency contact city"
        },
        "state": {
          "type": "string",
          "description": "Emergency contact state"
        },
        "zipCode": {
          "type": "string",
          "description": "Emergency contact zipcode"
        },
        "firstName": {
          "type": "string",
          "description": "Emergency contact first name"
        },
        "middleName": {
          "type": "string",
          "description": "Emergency contact middle name"
        },
        "lastName": {
          "type": "string",
          "description": "Emergency contact last name"
        },
        "homePhone": {
          "type": "string",
          "description": "Emergency contact home phone, Supported formats: +1-999-999-9999, +1-9999999999, +19999999999, +1-(999) 999 9999, +1 (999) 999-9999, +1999 999 9999, 999-999-9999, 9999999999, (999) 999 9999, (999)999-9999, 999 999 9999"
        },
        "workPhone": {
          "type": "string",
          "description": "Emergency contact work phone, Supported formats: +1-999-999-9999, +1-9999999999, +19999999999, +1-(999) 999 9999, +1 (999) 999-9999, +1999 999 9999, 999-999-9999, 9999999999, (999) 999 9999, (999)999-9999, 999 999 9999"
        },
        "workPhoneExt": {
          "type": "string",
          "description": "Emergency contact work phone extension"
        },
        "cellPhone": {
          "type": "string",
          "description": "Emergency contact cell phone, Supported formats: +1-999-999-9999, +1-9999999999, +19999999999, +1-(999) 999 9999, +1 (999) 999-9999, +1999 999 9999, 999-999-9999, 9999999999, (999) 999 9999, (999)999-9999, 999 999 9999"
        },
        "email": {
          "type": "string",
          "description": "Emergency contact email"
        },
        "relationToPatient": {
          "type": "string",
          "description": "Emergency contact relationship to patient"
        },
        "relationshipToPatient": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.MappedCode"
            }
          ],
          "description": "Emergency contact relationship to patient code"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Bridge.EmergencyContactDetailReference": {
      "type": "object",
      "properties": {
        "contactId": {
          "type": "string",
          "description": "EmergenctContact unique identifier"
        },
        "emergencyContactDetail": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.EmergencyContactDetail"
            }
          ],
          "description": "Emergency Contact"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Bridge.Ethnicity": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "HL7 v3 Ethnicity code.\nFor example: 2180-8 (Puerto Rican), 2148-5 (Mexican), 2162-6 (Central American Indian)."
        },
        "source": {
          "type": "string",
          "description": "Original ethnicity value/display text from the source system.\nFor example: Puerto Rican, Mexican, Central American Indian."
        }
      },
      "additionalProperties": false,
      "description": "Our mapped code from the HL7 v3 Ethnicity code system.\nhttps://terminology.hl7.org/5.1.0/CodeSystem-v3-Ethnicity.html"
    },
    "LKCloudConnect.Contracts.Bridge.GenderIdentity": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Our mapped code https://www.hl7.org/fhir/codesystem-gender-identity.html"
        },
        "sourceText": {
          "type": "string",
          "description": "System-specific free-text"
        },
        "source": {
          "type": "string",
          "description": "System-specific code"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Bridge.ImageUpdate": {
      "type": "object",
      "properties": {
        "image": {
          "type": "string",
          "description": "Base64 encoded image content",
          "format": "byte"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Bridge.InsuranceCardUpdate": {
      "type": "object",
      "properties": {
        "front": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.ImageUpdate"
            }
          ],
          "description": "Insurance card front image"
        },
        "back": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.ImageUpdate"
            }
          ],
          "description": "Insurance card back image"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Bridge.InsuranceDetailUpdate": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Insurance unique identifier"
        },
        "policyNumber": {
          "type": "string",
          "description": "Insurance policy number"
        },
        "groupNumber": {
          "type": "string",
          "description": "Insurance group number"
        },
        "responsibleParty": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.ResponsibleParty"
            }
          ],
          "description": "Insurance responsible party"
        },
        "copay": {
          "type": "number",
          "description": "Insurance copay amount",
          "format": "double"
        },
        "effectiveDate": {
          "type": "string",
          "description": "Insurance effective date. (DateTimeOffset) e.g. 2019-01-01T00:00:00+00:00",
          "format": "date-time"
        },
        "expirationDate": {
          "type": "string",
          "description": "Insurance expiration date. (DateTimeOffset) e.g. 2019-01-01T00:00:00+00:00",
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Bridge.InsuranceUpdate": {
      "type": "object",
      "properties": {
        "updateInsuranceDetails": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.InsuranceDetailUpdate"
            }
          ],
          "description": "Insurance details update"
        },
        "updateInsuranceCard": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.InsuranceCardUpdate"
            }
          ],
          "description": "Insurance card update"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Bridge.Language": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "System-specific code"
        },
        "source": {
          "type": "string",
          "description": "System-specific code"
        }
      },
      "additionalProperties": false,
      "description": "Language"
    },
    "LKCloudConnect.Contracts.Bridge.MappedCode": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Our mapped code (If one is available)"
        },
        "source": {
          "type": "string",
          "description": "System-specific code"
        },
        "sourceText": {
          "type": "string",
          "description": "System-specific free text when additional free text is allowed, usually found with “other” fields"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Bridge.MaritalStatusCode": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Marital Status Code."
        },
        "source": {
          "type": "string",
          "description": "System-specific code"
        }
      },
      "additionalProperties": false,
      "description": "Marital Status code\nhttps://www.hl7.org/fhir/valueset-marital-status.html"
    },
    "LKCloudConnect.Contracts.Bridge.PatientDetailUpdate": {
      "type": "object",
      "properties": {
        "prefix": {
          "type": "string",
          "description": "Patient prefix"
        },
        "suffix": {
          "type": "string",
          "description": "Patient suffix"
        },
        "firstName": {
          "type": "string",
          "description": "Patient first name"
        },
        "lastName": {
          "type": "string",
          "description": "Patient last name"
        },
        "dateOfBirth": {
          "type": "string",
          "description": "Patient date of birth e.g. 2019-01-01",
          "format": "date-time"
        },
        "email": {
          "type": "string",
          "description": "Patient email"
        },
        "middleName": {
          "type": "string",
          "description": "Patient middle name"
        },
        "preferredName": {
          "type": "string",
          "description": "Patient preferred name"
        },
        "sex": {
          "type": "string",
          "description": "Patient sex code"
        },
        "address1": {
          "type": "string",
          "description": "Patient address1"
        },
        "address2": {
          "type": "string",
          "description": "Patient address2"
        },
        "city": {
          "type": "string",
          "description": "Patient city"
        },
        "state": {
          "type": "string",
          "description": "Patient state"
        },
        "zip": {
          "type": "string",
          "description": "Patient zip"
        },
        "homePhone": {
          "type": "string",
          "description": "Patient home phone, Supported formats: +1-999-999-9999, +1-9999999999, +19999999999, +1-(999) 999 9999, +1 (999) 999-9999, +1999 999 9999, 999-999-9999, 9999999999, (999) 999 9999, (999)999-9999, 999 999 9999"
        },
        "workPhone": {
          "type": "string",
          "description": "Patient work phone, Supported formats: +1-999-999-9999, +1-9999999999, +19999999999, +1-(999) 999 9999, +1 (999) 999-9999, +1999 999 9999, 999-999-9999, 9999999999, (999) 999 9999, (999)999-9999, 999 999 9999"
        },
        "workPhoneExt": {
          "type": "string",
          "description": "Patient work phone extension"
        },
        "mobilePhone": {
          "type": "string",
          "description": "Patient mobile phone, Supported formats: +1-999-999-9999, +1-9999999999, +19999999999, +1-(999) 999 9999, +1 (999) 999-9999, +1999 999 9999, 999-999-9999, 9999999999, (999) 999 9999, (999)999-9999, 999 999 9999"
        },
        "ethnicity": {
          "type": "string",
          "description": "Patient ethnicity\n\nSuperseded by \"ethnicities\"",
          "deprecated": true
        },
        "language": {
          "type": "string",
          "description": "Patient language\n\nSuperseded by \"languages\"",
          "deprecated": true
        },
        "race": {
          "type": "string",
          "description": "Patient race\n\nSuperseded by \"races\"",
          "deprecated": true
        },
        "employmentStatus": {
          "type": "string",
          "description": "Patient employment status"
        },
        "employerId": {
          "type": "string",
          "description": "Patient employer id"
        },
        "providerId": {
          "type": "string",
          "description": "Patient provider id"
        },
        "maritalStatus": {
          "enum": [
            "Unknown",
            "Married",
            "Divorced",
            "Partner",
            "Single",
            "Widowed",
            "LegallySeparated"
          ],
          "type": "string",
          "description": "Patient marital status"
        },
        "emergencyContact": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.EmergencyContactDetail"
            }
          ],
          "description": "Patient emergency contact detail"
        },
        "pharmacy": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.UpdatePatient.UpdatePharmacyDetail"
            }
          ],
          "description": "Patient pharmacy detail"
        },
        "financialResponsibleParty": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.ResponsibleParty"
            }
          ],
          "description": "Financial responsible party"
        },
        "genderIdentities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.GenderIdentity"
          },
          "description": "Patient gender identity codes\n`Default` `TransgenderFemale` `TransgenderMale` `NonBinary` `Male` `Female` `Other` `NonDisclose`"
        },
        "sexualOrientation": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.SexualOrientation"
            }
          ],
          "description": "Patient sexual orientation code\n`LesbianGayOrHomosexual` `StraightOrHeterosexual` `Bisexual` `Other` `Unknown` `NonDisclosed`"
        },
        "races": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.Race"
          },
          "description": "Patient race codes.\nSupports all HL7 v3 Race codes defined in:\nhttps://terminology.hl7.org/2.0.0/CodeSystem-v3-Race.html"
        },
        "ethnicities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.Ethnicity"
          },
          "description": "Patient ethnicity codes\nSupports all HL7 v3 Ethnicity codes defined in:\nhttps://terminology.hl7.org/5.1.0/CodeSystem-v3-Ethnicity.html"
        },
        "maritalStatusCode": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.MaritalStatusCode"
            }
          ],
          "description": "Marital Status code\nHl7 Marital Status Codes https://www.hl7.org/fhir/valueset-marital-status.html\n`Annulled` `Divorced` `Interlocutory` `LegallySeparated` `Married` `Polygamous` `NeverMarried` `DomesticPartner` `Unmarried` `Widowed` `Unknown`"
        },
        "socialSecurityNumber": {
          "type": "string",
          "description": "Patient social security number"
        },
        "countryCode": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.CountryCode"
            }
          ],
          "description": "Patient Country code"
        },
        "ssnNotProvidedReason": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.SsnNotProvidedReason"
            }
          ],
          "description": "Reason for not providing Social Security Number"
        },
        "externalId": {
          "type": "string",
          "description": "External Id"
        },
        "photo": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.PatientPhoto"
            }
          ],
          "description": "Patient Photo"
        },
        "languages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.Language"
          },
          "description": "Patient language codes"
        },
        "releaseOfInformation": {
          "type": "string",
          "description": "Indicates patient consent to share medical records"
        },
        "rxHistoryConsent": {
          "type": "string",
          "description": "Captures consent for sharing prescription history"
        },
        "notes": {
          "type": "string",
          "description": "Stores general patient notes"
        },
        "sexAtBirth": {
          "type": "string",
          "description": "Records the patient's sex assigned at birth"
        },
        "pronouns": {
          "type": "string",
          "description": "Specifies the pronouns that the patient identifies with (e.g., he/him, she/her, they/them)"
        },
        "identifiers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.PatientIdentifierInputs"
          },
          "description": "Additional patient identifiers"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Bridge.PatientIdentifierInputs": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "The actual identifier value assigned to the patient."
        },
        "type": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.PatientIdentifierType"
            }
          ],
          "description": "The type of identifier, including standardized code and optional source mapping."
        }
      },
      "additionalProperties": false,
      "description": "Represents a patient identifiers."
    },
    "LKCloudConnect.Contracts.Bridge.PatientIdentifierType": {
      "type": "object",
      "properties": {
        "code": {
          "enum": [
            "Other",
            "ChartNumber",
            "MedicalRecordNumber"
          ],
          "type": "string",
          "description": "Standardized identifier type code defined by Ellkay."
        },
        "source": {
          "type": "string",
          "description": "Source-specific identifier type as defined by the originating EMR system."
        }
      },
      "additionalProperties": false,
      "description": "Represents the type of patient identifier, including a standardized code and optional source-specific value."
    },
    "LKCloudConnect.Contracts.Bridge.PatientPhoto": {
      "type": "object",
      "properties": {
        "content": {
          "type": "string",
          "description": "Base64 encoded image content",
          "format": "byte"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Bridge.PrimaryFacility": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Facility Id"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Bridge.ProviderDetail": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Provider id"
        },
        "lastName": {
          "type": "string",
          "description": "Provider last name"
        },
        "firstName": {
          "type": "string",
          "description": "Provider first name"
        },
        "middleName": {
          "type": "string",
          "description": "Provider middle name"
        },
        "upin": {
          "type": "string",
          "description": "Provider upin"
        },
        "license": {
          "type": "string",
          "description": "Provider license"
        },
        "npi": {
          "type": "string",
          "description": "Provider npi"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Bridge.Race": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "HL7 v3 Race code.\nhttps://terminology.hl7.org/2.0.0/CodeSystem-v3-Race.html\nFor example: 2106-3 (White), 2029-7 (Asian Indian), 1167-6 (Coeur D'Alene)."
        },
        "source": {
          "type": "string",
          "description": "Original race value/display text from the source system.\nFor example: White, Asian Indian, Coeur D'Alene."
        }
      },
      "additionalProperties": false,
      "description": "Race"
    },
    "LKCloudConnect.Contracts.Bridge.RelationshipToPatient": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Our mapped code"
        },
        "sourceText": {
          "type": "string",
          "description": "System-specific free text"
        },
        "source": {
          "type": "string",
          "description": "System-specific code"
        }
      },
      "additionalProperties": false,
      "description": "Relationship To Patient"
    },
    "LKCloudConnect.Contracts.Bridge.ResponsibleParty": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Responsible party id"
        },
        "firstName": {
          "type": "string",
          "description": "Responsible party first name"
        },
        "lastName": {
          "type": "string",
          "description": "Responsible party last name"
        },
        "dateOfBirth": {
          "type": "string",
          "description": "Responsible party date of birth e.g. 2019-01-01",
          "format": "date-time"
        },
        "relationToPatient": {
          "type": "string",
          "description": "Responsible party relation to patient\nHL7 Related person relationship type codes -  https://www.hl7.org/fhir/valueset-relatedperson-relationshiptype.html\n`C` `E` `F` `I` `N` `O` `S` `U` `FAMMEMB` `CHILD` `CHLDADOPT` `DAUADOPT` `SONADOPT` `CHLDFOST` `DAUFOST` `SONFOST` `DAUC` `DAU` `STPDAU` `NCHILD` `SON` `SONC` `STPSON` `STPCHLD` `EXT` `AUNT` `MAUNT` `PAUNT` `COUSN` `MCOUSN` `PCOUSN` `GGRPRN` `GGRFTH` `MGGRFTH` `PGGRFTH` `GGRMTH` `MGGRMTH` `PGGRMTH` `MGGRPRN` `PGGRPRN` `GRNDCHILD` `GRNDDAU` `GRNDSON` `GRPRN` `GRFTH` `MGRFTH` `PGRFTH` `GRMTH` `MGRMTH` `PGRMTH` `MGRPRN` `PGRPRN` `INLAW` `CHLDINLAW` `DAUINLAW` `SONINLAW` `PRNINLAW` `FTHINLAW` `MTHINLAW` `SIBINLAW` `BROINLAW` `SISINLAW` `NIENEPH` `NEPHEW` `NIECE` `UNCLE` `MUNCLE` `PUNCLE` `PRN` `ADOPTP` `ADOPTF` `ADOPTM` `FTH` `FTHFOST` `NFTH` `NFTHF` `STPFTH` `MTH` `GESTM` `MTHFOST` `NMTH` `NMTHF` `STPMTH` `NPRN` `PRNFOST` `STPPRN` `SIB` `BRO` `HBRO` `NBRO` `TWINBRO` `FTWINBRO` `ITWINBRO` `STPBRO` `HSIB` `HSIS` `NSIB` `NSIS` `TWINSIS` `FTWINSIS` `ITWINSIS` `TWIN` `FTWIN` `ITWIN` `SIS` `STPSIS` `STPSIB` `SIGOTHR` `DOMPART` `FMRSPS` `SPS` `HUSB` `WIFE` `FRND` `NBOR` `ONESELF` `ROOM`\n\nSuperseded by \"RelationshipToPatient\"",
          "deprecated": true
        },
        "relationshipToPatient": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.RelationshipToPatient"
            }
          ],
          "description": "Relationship To Patient\nHL7 Related person relationship type codes -  https://www.hl7.org/fhir/valueset-relatedperson-relationshiptype.html\n`C` `E` `F` `I` `N` `O` `S` `U` `FAMMEMB` `CHILD` `CHLDADOPT` `DAUADOPT` `SONADOPT` `CHLDFOST` `DAUFOST` `SONFOST` `DAUC` `DAU` `STPDAU` `NCHILD` `SON` `SONC` `STPSON` `STPCHLD` `EXT` `AUNT` `MAUNT` `PAUNT` `COUSN` `MCOUSN` `PCOUSN` `GGRPRN` `GGRFTH` `MGGRFTH` `PGGRFTH` `GGRMTH` `MGGRMTH` `PGGRMTH` `MGGRPRN` `PGGRPRN` `GRNDCHILD` `GRNDDAU` `GRNDSON` `GRPRN` `GRFTH` `MGRFTH` `PGRFTH` `GRMTH` `MGRMTH` `PGRMTH` `MGRPRN` `PGRPRN` `INLAW` `CHLDINLAW` `DAUINLAW` `SONINLAW` `PRNINLAW` `FTHINLAW` `MTHINLAW` `SIBINLAW` `BROINLAW` `SISINLAW` `NIENEPH` `NEPHEW` `NIECE` `UNCLE` `MUNCLE` `PUNCLE` `PRN` `ADOPTP` `ADOPTF` `ADOPTM` `FTH` `FTHFOST` `NFTH` `NFTHF` `STPFTH` `MTH` `GESTM` `MTHFOST` `NMTH` `NMTHF` `STPMTH` `NPRN` `PRNFOST` `STPPRN` `SIB` `BRO` `HBRO` `NBRO` `TWINBRO` `FTWINBRO` `ITWINBRO` `STPBRO` `HSIB` `HSIS` `NSIB` `NSIS` `TWINSIS` `FTWINSIS` `ITWINSIS` `TWIN` `FTWIN` `ITWIN` `SIS` `STPSIS` `STPSIB` `SIGOTHR` `DOMPART` `FMRSPS` `SPS` `HUSB` `WIFE` `FRND` `NBOR` `ONESELF` `ROOM`"
        },
        "sex": {
          "type": "string",
          "description": "Responsible party sex"
        },
        "address1": {
          "type": "string",
          "description": "Responsible party address1"
        },
        "address2": {
          "type": "string",
          "description": "Responsible party address2"
        },
        "city": {
          "type": "string",
          "description": "Responsible party city"
        },
        "state": {
          "type": "string",
          "description": "Responsible party state"
        },
        "zip": {
          "type": "string",
          "description": "Responsible party zip"
        },
        "homePhone": {
          "type": "string",
          "description": "Responsible party home phone, Supported formats: +1-999-999-9999, +1-9999999999, +19999999999, +1-(999) 999 9999, +1 (999) 999-9999, +1999 999 9999, 999-999-9999, 9999999999, (999) 999 9999, (999)999-9999, 999 999 9999"
        },
        "workPhone": {
          "type": "string",
          "description": "Responsible party work phone, Supported formats: +1-999-999-9999, +1-9999999999, +19999999999, +1-(999) 999 9999, +1 (999) 999-9999, +1999 999 9999, 999-999-9999, 9999999999, (999) 999 9999, (999)999-9999, 999 999 9999"
        },
        "mobilePhone": {
          "type": "string",
          "description": "Responsible party mobile phone, Supported formats: +1-999-999-9999, +1-9999999999, +19999999999, +1-(999) 999 9999, +1 (999) 999-9999, +1999 999 9999, 999-999-9999, 9999999999, (999) 999 9999, (999)999-9999, 999 999 9999"
        },
        "employerId": {
          "type": "string",
          "description": "Responsible party employer id"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Bridge.SexualOrientation": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Our mapped code https://www.healthit.gov/isa/representing-patient-identified-sexual-orientation"
        },
        "sourceText": {
          "type": "string",
          "description": "System-specific free text"
        },
        "source": {
          "type": "string",
          "description": "System-specific code"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Bridge.SsnNotProvidedReason": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Always null, we don't map this code"
        },
        "sourceText": {
          "type": "string",
          "description": "System-specific free text"
        },
        "source": {
          "type": "string",
          "description": "System-specific code"
        }
      },
      "additionalProperties": false,
      "description": "Reason code for not providing Social Security Number"
    },
    "LKCloudConnect.Contracts.Bridge.UpdatePatientRequest": {
      "required": [
        "patientId"
      ],
      "type": "object",
      "properties": {
        "patientId": {
          "minLength": 1,
          "type": "string",
          "description": "Patient id"
        },
        "updatePatient": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Bridge.DemographicUpdate"
            }
          ],
          "description": "Patient update data"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.UpdatePatient.UpdatePharmacyDetail": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Pharmacy id"
        }
      },
      "additionalProperties": false
    }
  }
}