Skip to main content
UpdatedThe birthDate and gender properties are now optional in the Patient type of the Web SDK v2.1.1.

Overview

Patient type represents demographic and identification information. The code snippet below shows how to use the Patient type to create a patient object.
JavaScript
type Patient = {
  identifier: string;
  kind?: string;
  name: {
    use: string;
    family: string;
    given: string[];
    suffix: string[];
  };
  birthDate: string;
  gender: "MALE" | "FEMALE" | "UNKNOWN";
};

Properties