Class ExportJob

Hierarchy

  • ExportJob

Constructors

  • NOTE: The constructor is protected because it is not supposed to be called directly from outside this class. The reason is that one would also want to save the new instance to a file and that is async task but constructors cannot be async. ExportManager.create() can be used instead

    Parameters

    • patientId: string

      The ID of the exported patient

    • Optional _jobId: string

    Returns ExportJob

Properties

attachments: Attachment[]

Custom attachments (if any)

authorizations: ExportJobAuthorizations = ...
autoApprove: boolean = false
completedAt: number = 0
createdAt: number = 0
id: string
manifest: null | ExportManifest = null
path: string
patient: {
    id: string;
    name: string;
}

Type declaration

  • id: string
  • name: string
status: ExportJobStatus = "awaiting-input"

Methods

  • Parameters

    • attachment: File
    • baseUrl: string

    Returns Promise<void>

  • Parameters

    • baseUrl: string

    Returns Promise<void>

  • Parameters

    • baseUrl: string
    • noForm: boolean = false

    Returns Promise<void>

  • Parameters

    • fileName: string
    • baseUrl: string

    Returns Promise<void>

  • Parameters

    • resource: Resource

    Returns boolean

  • Delete a job by ID if:

    • The job has been completed more than completedJobLifetimeMinutes minutes ago
    • The job started more than jobMaxLifetimeMinutes minutes ago and is still pending Note that jobs having "in-review" status will NOT be deleted

    Parameters

    • id: string

    Returns Promise<void>

Generated using TypeDoc