mise API - v0.0.0
    Preparing search index...

    Function pacsQueryModel_build

    • Projects a decoded query result onto the wire's pacs.query model: studies containing series, each series carrying its instance UID so a surface can lower a selection straight to a pull.

      Parameters

      • decoded: PACSQueryDecodedResult

        The decoded query payload.

      • facts: {
            expression: string;
            pacsName: string;
            provenance?: { answeredAt: string; replayed: boolean };
            queryId: number;
            vfsPath: string;
        }

        The query's identity facts.

        • expression: string
        • pacsName: string
        • Optionalprovenance?: { answeredAt: string; replayed: boolean }

          Where this answer came from. Said once here so chell's sentence and argus's pill are the same fact rather than two guesses at it.

        • queryId: number
        • vfsPath: string

      Returns {
          expression: string;
          pacsName: string;
          patients?: {
              error?: string;
              patientId: string;
              patientName?: string;
              provenance?: { answeredAt: string; replayed: boolean };
              queryId?: number;
              seriesCount: number;
              server?: string;
              status: "found" | "none" | "unasked";
              studyCount: number;
          }[];
          provenance?: { answeredAt: string; replayed: boolean };
          queryId: number;
          studies: {
              accession: string;
              date: string;
              description: string;
              modalities: string;
              patientId: string;
              patientName: string;
              series: {
                  description: string;
                  fileCount?: number;
                  folderPath?: string;
                  modality: string;
                  pulled?: boolean;
                  pulledFiles?: number;
                  seriesUID: string;
                  vfsPath?: string;
              }[];
              server?: string;
              studyUID?: string;
              vfsPath?: string;
          }[];
          vfsPath: string;
      }

      The typed model payload.