@welshare/sdk
    Preparing search index...

    Function createHeartRateObservation

    • Creates a heart rate observation

      Parameters

      • patientDid: string
      • heartRate: number

      Returns {
          category?: {
              coding?: {
                  code?: string;
                  display?: string;
                  system: string;
                  userSelected?: boolean;
                  version?: string;
              }[];
              text?: string;
          }[];
          code: {
              coding?: {
                  code?: string;
                  display?: string;
                  system: string;
                  userSelected?: boolean;
                  version?: string;
              }[];
              text?: string;
          };
          derivedFrom?: {
              display?: string;
              id?: string;
              identifier?: { system?: string; value?: string };
              reference?: string;
              type?: string;
          }[];
          effectiveDateTime?: string;
          id: string;
          interpretation?: {
              coding?: {
                  code?: string;
                  display?: string;
                  system: string;
                  userSelected?: boolean;
                  version?: string;
              }[];
              text?: string;
          }[];
          issued?: string;
          meta?: { lastUpdated?: string; profile?: string[]; versionId?: string };
          method?: {
              coding?: {
                  code?: string;
                  display?: string;
                  system: string;
                  userSelected?: boolean;
                  version?: string;
              }[];
              text?: string;
          };
          referenceRange?: {
              high: {
                  code?: string;
                  comparator?: "<"
                  | "<="
                  | ">="
                  | ">"
                  | "="
                  | "!=";
                  system: string;
                  unit: string;
                  value?: number;
              };
              low: {
                  code?: string;
                  comparator?: "<"
                  | "<="
                  | ">="
                  | ">"
                  | "="
                  | "!=";
                  system: string;
                  unit: string;
                  value?: number;
              };
              text?: string;
          }[];
          resourceType: "Observation";
          status: | "entered-in-error"
          | "amended"
          | "registered"
          | "preliminary"
          | "final"
          | "corrected"
          | "cancelled";
          subject: {
              display?: string;
              id?: string;
              identifier?: { system?: string; value?: string };
              reference?: string;
              type?: string;
          };
      } & (
          | {
              valueQuantity: {
                  code?: string;
                  comparator?: "<"
                  | "<="
                  | ">="
                  | ">"
                  | "="
                  | "!=";
                  system: string;
                  unit: string;
                  value?: number;
              };
          }
          | {
              valueCodeableConcept: {
                  coding?: {
                      code?: string;
                      display?: string;
                      system: string;
                      userSelected?: boolean;
                      version?: string;
                  }[];
                  text?: string;
              };
          }
          | { valueBoolean: boolean }
          | { valueString: string }
          | { valueInteger: number }
          | {
              valueRange: {
                  high?: {
                      code?: string;
                      system: string;
                      unit?: string;
                      value?: number;
                  };
                  low?: { code?: string; system: string; unit?: string; value?: number };
              };
          }
          | {
              valueRatio: {
                  denominator?: {
                      code?: string;
                      comparator?: "<"
                      | "<="
                      | ">="
                      | ">"
                      | "="
                      | "!=";
                      system: string;
                      unit: string;
                      value?: number;
                  };
                  numerator?: {
                      code?: string;
                      comparator?: "<"
                      | "<="
                      | ">="
                      | ">"
                      | "="
                      | "!=";
                      system: string;
                      unit: string;
                      value?: number;
                  };
              };
          }
          | {
              valueSampledData: {
                  codeMap?: string;
                  data?: string;
                  dimensions: number;
                  factor?: number;
                  interval?: number;
                  intervalUnit?: string;
                  lowerLimit?: number;
                  offsets?: string;
                  origin: { code?: string; system: string; unit?: string; value?: number };
                  upperLimit?: number;
              };
          }
          | { valueTime: string }
          | { valueDateTime: string }
          | { valuePeriod: { end?: string; start?: string } }
          | {
              valueAttachment: {
                  contentType?: string;
                  creation?: string;
                  data?: string;
                  duration?: number;
                  frames?: number;
                  hash?: string;
                  height?: number;
                  id?: string;
                  language?: string;
                  pages?: number;
                  size?: number;
                  title?: string;
                  url?: string;
                  width?: number;
              };
          }
          | {
              component: (
                  { code: { coding?: { system: string; version?: string | undefined; code?: string | undefined; display?: string | undefined; userSelected?: boolean | undefined; }[] | undefined; text?: string | undefined; }; interpretation?: { ...; }[] | undefined; } & ({ ...; } | ... 11 more ... | { ...; })
              )[];
          }
      )