{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hint-health/main/json-schema/hint-health-public-patient-blueprint-one-schema.json",
  "title": "Public.PatientBlueprint_one",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hint-health-patient-api-openapi.yml#/components/schemas/Public.PatientBlueprint_one",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "address_city": {
      "type": "string"
    },
    "address_country": {
      "type": "string"
    },
    "address_line1": {
      "type": "string"
    },
    "address_line2": {
      "type": "string"
    },
    "address_state": {
      "type": "string"
    },
    "address_zip": {
      "type": "string"
    },
    "age": {
      "type": "string"
    },
    "chosen_first_name": {
      "type": "string"
    },
    "chosen_last_name": {
      "type": "string"
    },
    "chosen_middle_name": {
      "type": "string"
    },
    "chosen_suffix": {
      "type": "string"
    },
    "chosen_title": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "dob": {
      "type": "string",
      "format": "date"
    },
    "electronic_communication_consent_accepted": {
      "type": "string"
    },
    "electronic_communication_consent_accepted_at": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "engaged": {
      "type": "boolean"
    },
    "external_link_id": {
      "type": "string"
    },
    "first_name": {
      "type": "string"
    },
    "gender": {
      "type": "string"
    },
    "gender_identity": {
      "type": "string"
    },
    "gender_other": {
      "type": "string"
    },
    "health_insurance_group_id": {
      "type": "string"
    },
    "health_insurance_member_id": {
      "type": "string"
    },
    "health_insurance_payer_id": {
      "type": "string"
    },
    "health_insurance_payer_name": {
      "type": "string"
    },
    "hipaa_authorization_accepted": {
      "type": "boolean"
    },
    "hipaa_authorization_accepted_at": {
      "type": "string",
      "format": "date-time"
    },
    "import_id": {
      "type": "string"
    },
    "import_source": {
      "type": "string"
    },
    "joined_practice_date": {
      "type": "string",
      "format": "date"
    },
    "last_engagement_date": {
      "type": "string",
      "format": "date"
    },
    "last_name": {
      "type": "string"
    },
    "lead_source_other": {
      "type": "string"
    },
    "master_record_sponsor": {
      "type": "string"
    },
    "membership_status": {
      "type": "string"
    },
    "middle_name": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "patient_agreement_accepted": {
      "type": "boolean"
    },
    "patient_agreement_accepted_at": {
      "type": "string",
      "format": "date-time"
    },
    "preferred_language": {
      "type": "string"
    },
    "pronouns": {
      "type": "string"
    },
    "provider_web_link": {
      "type": "string"
    },
    "sex": {
      "type": "string"
    },
    "suffix": {
      "type": "string"
    },
    "terms_accepted": {
      "type": "boolean"
    },
    "terms_accepted_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "uses_tobacco": {
      "type": "boolean"
    },
    "account": {
      "$ref": "#/$defs/Public.PatientBlueprint_account"
    },
    "company": {
      "$ref": "#/$defs/Public.CompanyBlueprint_leaf"
    },
    "emergency_contact": {
      "$ref": "#/$defs/Common.EmergencyContactBlueprint_shared"
    },
    "external_records": {
      "$ref": "#/$defs/Public.ExternalRecordBlueprint_min"
    },
    "known_practice": {
      "$ref": "#/$defs/Public.KnownPracticeBlueprint_min"
    },
    "lead_source": {
      "$ref": "#/$defs/Public.LeadSourceBlueprint_one"
    },
    "location": {
      "$ref": "#/$defs/Public.LocationBlueprint_one"
    },
    "location_group": {
      "$ref": "#/$defs/Public.LocationGroupBlueprint_leaf"
    },
    "membership_members": {
      "$ref": "#/$defs/Public.MembershipMemberBlueprint_for_patient"
    },
    "memberships": {
      "$ref": "#/$defs/Public.MembershipPatientBlueprint_one"
    },
    "merged_into": {
      "$ref": "#/$defs/Public.PatientBlueprint_min"
    },
    "phones": {
      "$ref": "#/$defs/Public.PhoneBlueprint_leaf"
    },
    "practitioner": {
      "$ref": "#/$defs/Public.PractitionerBlueprint_one"
    },
    "practitioner_group": {
      "$ref": "#/$defs/Public.LocationGroupBlueprint_leaf"
    },
    "sponsorships": {
      "$ref": "#/$defs/Public.CompanySponsorshipBlueprint_for_patient"
    },
    "ssn": {
      "$ref": "#/$defs/Common.SocialSecurityNumberBlueprint_masked"
    }
  },
  "$defs": {
    "Common.EmergencyContactBlueprint_shared": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "first_name": {
          "type": "string"
        },
        "last_name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "relationship": {
          "type": "string"
        },
        "phone": {
          "$ref": "#/$defs/Common.PhoneBlueprint_shared"
        }
      }
    },
    "Common.PhoneBlueprint_shared": {
      "type": "object",
      "properties": {
        "number": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "us_formattable": {
          "type": "string"
        }
      }
    },
    "Common.SocialSecurityNumberBlueprint_masked": {
      "type": "object",
      "properties": {
        "masked_number": {
          "type": "string"
        }
      }
    },
    "Public.CompanyAccountBlueprint_min": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      }
    },
    "Public.CompanyBlueprint_leaf": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "Public.CompanySponsorshipBlueprint_for_patient": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "external_id": {
          "type": "string"
        },
        "is_subscriber": {
          "type": "boolean"
        },
        "type": {
          "type": "string"
        },
        "company": {
          "$ref": "#/$defs/Public.CompanyBlueprint_leaf"
        },
        "family": {
          "$ref": "#/$defs/Public.CompanyAccountBlueprint_min"
        }
      }
    },
    "Public.EmployeeDivisionBlueprint_leaf": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "Public.ExternalRecordBlueprint_min": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string"
        },
        "external_id": {
          "type": "string"
        }
      }
    },
    "Public.KnownPracticeBlueprint_min": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "Public.LeadSourceBlueprint_one": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "Public.LocationBlueprint_one": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "address_city": {
          "type": "string"
        },
        "address_country": {
          "type": "string"
        },
        "address_latitude": {
          "type": "number",
          "format": "float"
        },
        "address_line1": {
          "type": "string"
        },
        "address_line2": {
          "type": "string"
        },
        "address_longitude": {
          "type": "number",
          "format": "float"
        },
        "address_state": {
          "type": "string"
        },
        "address_zip": {
          "type": "string"
        },
        "distance": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "phone_number": {
          "type": "string"
        },
        "virtual": {
          "type": "boolean"
        },
        "location_group": {
          "$ref": "#/$defs/Public.LocationGroupBlueprint_leaf"
        }
      }
    },
    "Public.LocationGroupBlueprint_leaf": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "integration_record_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "Public.MembershipBlueprint_min": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      }
    },
    "Public.MembershipMemberBlueprint_for_patient": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "enrollment_status": {
          "type": "string"
        },
        "member_type": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "enrollment_requested_on": {
          "type": "string",
          "format": "date"
        },
        "start_date": {
          "type": "string",
          "format": "date"
        },
        "end_date": {
          "type": "string"
        },
        "membership": {
          "$ref": "#/$defs/Public.MembershipBlueprint_min"
        }
      }
    },
    "Public.MembershipPatientBlueprint_one": {
      "type": "object",
      "properties": {
        "end_date": {
          "type": "string"
        },
        "enrollment_requested_on": {
          "type": "string",
          "format": "date"
        },
        "enrollment_status": {
          "type": "string"
        },
        "member_type": {
          "type": "string"
        },
        "start_date": {
          "type": "string",
          "format": "date"
        },
        "status": {
          "type": "string"
        },
        "uses_tobacco": {
          "type": "boolean"
        },
        "company": {
          "$ref": "#/$defs/Public.CompanyBlueprint_leaf"
        },
        "division": {
          "$ref": "#/$defs/Public.EmployeeDivisionBlueprint_leaf"
        },
        "payer": {
          "$ref": "#/$defs/Public.PatientBlueprint_min"
        },
        "plan": {
          "$ref": "#/$defs/Public.PlanBlueprint_min"
        }
      }
    },
    "Public.NpiBlueprint_shared": {
      "type": "object",
      "properties": {
        "first_name": {
          "type": "string"
        },
        "last_name": {
          "type": "string"
        },
        "number": {
          "type": "string"
        },
        "organization_name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    },
    "Public.PatientBlueprint_account": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "past_due_in_cents": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "Public.PatientBlueprint_min": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "Public.PhoneBlueprint_leaf": {
      "type": "object",
      "properties": {
        "number": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    },
    "Public.PlanBlueprint_min": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "plan_type": {
          "type": "string"
        }
      }
    },
    "Public.PractitionerBlueprint_one": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "accepts_enrollments_from_employer": {
          "type": "string"
        },
        "accepts_enrollments_from_retail": {
          "type": "string"
        },
        "bio": {
          "type": "string"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "education": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "gender": {
          "type": "string"
        },
        "gender_other": {
          "type": "string"
        },
        "integration_record_id": {
          "type": "string"
        },
        "max_patient_age": {
          "type": "string"
        },
        "min_patient_age": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "online_signup_visibility": {
          "type": "string"
        },
        "panel_size": {
          "type": "integer",
          "format": "int32"
        },
        "panel_size_limit": {
          "type": "integer",
          "format": "int32"
        },
        "photo_url": {
          "type": "string"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "locations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Public.LocationBlueprint_one"
          }
        },
        "npi": {
          "$ref": "#/$defs/Public.NpiBlueprint_shared"
        },
        "specialties": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Public.SpecialtyBlueprint_all"
          }
        }
      }
    },
    "Public.SpecialtyBlueprint_all": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      }
    }
  }
}