@welshare/sdk
    Preparing search index...

    Function mapToNillionSchema

    • Parameters

      • formData: Omit<
            {
                birthDate?: string;
                extensions?: Record<string, any>;
                gender: "other" | "male" | "female" | "unknown";
                id: string;
                meta?: { lastUpdated?: string; profile?: string[]; versionId?: string };
                name?: {
                    family?: string;
                    given?: string[];
                    prefix?: string[];
                    suffix?: string[];
                }[];
                resourceType: "Patient";
                telecom?: {
                    rank?: number;
                    system?: "url"
                    | "phone"
                    | "fax"
                    | "email"
                    | "sms"
                    | "other";
                    use?: "home" | "work" | "temp" | "old" | "mobile";
                    value?: string;
                }[];
            },
            "_id"
            | "resourceType"
            | "id",
        > & { controllerDID: string }

      Returns {
          _id: string;
          birthDate?: string;
          controllerDID: string;
          extensions?: Record<string, any>;
          gender: "other" | "male" | "female" | "unknown";
          id: string;
          meta?: { lastUpdated?: string; profile?: string[]; versionId?: string };
          name?: {
              family?: { "%allot": string };
              given?: { "%allot": string }[];
              prefix?: string[];
              suffix?: string[];
          }[];
          resourceType: "Patient";
          telecom?: {
              rank?: number;
              system?: "url"
              | "phone"
              | "fax"
              | "email"
              | "sms"
              | "other";
              use?: "home" | "work" | "temp" | "old" | "mobile";
              value?: { "%allot": string };
          }[];
      }[]