@modelhealth/modelhealth
    Preparing search index...

    Class SubjectsResource

    Filtered access to subjects.

    Returned by ModelHealthClient.subjects — do not construct directly.

    Index
    • Lazily lists subjects matching the given filters.

      Parameters

      Returns SubjectStream

      const subjects = client.subjects.list({ search: "Falisse", tags: ["study-a"] });
      for await (const subject of subjects) {
      console.log(subject.name);
      }

      const total = await client.subjects.list({ tags: ["study-a"] }).total;
      const all = await client.subjects.list({ tags: ["study-a"] }).all();