import { CodeStub } from './base/CodeStub.mjs'; import { HasEncryptionMetadata } from './base/HasEncryptionMetadata.mjs'; import { HasMedicalLocation } from './base/HasMedicalLocation.mjs'; import { ICureDocument } from './base/ICureDocument.mjs'; import { StoredDocument } from './base/StoredDocument.mjs'; import { DataAttachment } from './embed/DataAttachment.mjs'; import { Delegation } from './embed/Delegation.mjs'; import { DeletedAttachment } from './embed/DeletedAttachment.mjs'; import { Encryptable } from './embed/Encryptable.mjs'; import { ReceiptBlobType } from './embed/ReceiptBlobType.mjs'; import { SecurityMetadata } from './embed/SecurityMetadata.mjs'; import { Base64String } from './specializations/Base64String.mjs'; /** * * Represents a receipt for a healthcare transaction. Receipts are used to store acknowledgements * and responses * from external systems such as eFact, eAttest, or other healthcare messaging platforms. They can * be linked * to invoices or other documents. * / */ export interface Receipt extends StoredDocument, ICureDocument, HasMedicalLocation, HasEncryptionMetadata, Encryptable { /** * * Map of blob type to attachment id for the receipt. */ attachmentIds: { [key in ReceiptBlobType]?: string; }; /** * * Map of blob type to attachment id for the receipt. */ attachmentInfos: { [key in ReceiptBlobType]?: DataAttachment; }; /** * * Map of blob type to attachment id for the receipt. */ deletedAttachments: Array; /** * * List of references (e.g., nipReference, errorCode, errorPath, tarification, invoice UUID). */ references: Array; /** * * The id of the document (InvoiceDto, ContactDto, ...) this receipt is linked to. */ documentId: string | undefined; /** * * The category of the receipt. */ category: string | undefined; /** * * The sub-category of the receipt. */ subCategory: string | undefined; readonly isEncrypted: boolean; toJSON(): object; } /** * * Represents a receipt for a healthcare transaction. Receipts are used to store acknowledgements * and responses * from external systems such as eFact, eAttest, or other healthcare messaging platforms. They can * be linked * to invoices or other documents. * / */ export declare class DecryptedReceipt { /** * * The unique identifier of the receipt. */ id: string; /** * * The revision of the receipt in the database, used for conflict management / optimistic locking. */ rev: string | undefined; /** * * The timestamp (unix epoch in ms) of creation. */ created: number | undefined; /** * * The timestamp (unix epoch in ms) of the latest modification. */ modified: number | undefined; /** * * The id of the User that created this receipt. */ author: string | undefined; /** * * The id of the HealthcareParty that is responsible for this receipt. */ responsible: string | undefined; /** * * Tags that qualify the receipt as being member of a certain class. */ tags: Array; /** * * Codes that identify or qualify this particular receipt. */ codes: Array; /** * * Hard delete (unix epoch in ms) timestamp of the object. */ deletionDate: number | undefined; /** * * Map of blob type to attachment id for the receipt. */ attachmentIds: { [key in ReceiptBlobType]?: string; }; /** * * Map of blob type to attachment id for the receipt. */ attachmentInfos: { [key in ReceiptBlobType]?: DataAttachment; }; /** * * Map of blob type to attachment id for the receipt. */ deletedAttachments: Array; /** * * List of references (e.g., nipReference, errorCode, errorPath, tarification, invoice UUID). */ references: Array; /** * * The id of the document (InvoiceDto, ContactDto, ...) this receipt is linked to. */ documentId: string | undefined; /** * * The category of the receipt. */ category: string | undefined; /** * * The sub-category of the receipt. */ subCategory: string | undefined; /** * * The secret patient key, encrypted in the patient's own AES key. */ secretForeignKeys: Array; /** * * The patient id encrypted in the delegates' AES keys. */ cryptedForeignKeys: { [key: string]: Array; }; /** * * The delegations giving access to connected healthcare information. */ delegations: { [key: string]: Array; }; /** * * The keys used to encrypt this entity when stored encrypted. */ encryptionKeys: { [key: string]: Array; }; /** * * The base64-encoded encrypted fields of this entity. */ encryptedSelf: Base64String | undefined; /** * * The security metadata of the entity. */ securityMetadata: SecurityMetadata | undefined; readonly isEncrypted: false; constructor(partial: Partial); toJSON(): object; static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array): DecryptedReceipt; } /** * * Represents a receipt for a healthcare transaction. Receipts are used to store acknowledgements * and responses * from external systems such as eFact, eAttest, or other healthcare messaging platforms. They can * be linked * to invoices or other documents. * / */ export declare class EncryptedReceipt { /** * * The unique identifier of the receipt. */ id: string; /** * * The revision of the receipt in the database, used for conflict management / optimistic locking. */ rev: string | undefined; /** * * The timestamp (unix epoch in ms) of creation. */ created: number | undefined; /** * * The timestamp (unix epoch in ms) of the latest modification. */ modified: number | undefined; /** * * The id of the User that created this receipt. */ author: string | undefined; /** * * The id of the HealthcareParty that is responsible for this receipt. */ responsible: string | undefined; /** * * Tags that qualify the receipt as being member of a certain class. */ tags: Array; /** * * Codes that identify or qualify this particular receipt. */ codes: Array; /** * * Hard delete (unix epoch in ms) timestamp of the object. */ deletionDate: number | undefined; /** * * Map of blob type to attachment id for the receipt. */ attachmentIds: { [key in ReceiptBlobType]?: string; }; /** * * Map of blob type to attachment id for the receipt. */ attachmentInfos: { [key in ReceiptBlobType]?: DataAttachment; }; /** * * Map of blob type to attachment id for the receipt. */ deletedAttachments: Array; /** * * List of references (e.g., nipReference, errorCode, errorPath, tarification, invoice UUID). */ references: Array; /** * * The id of the document (InvoiceDto, ContactDto, ...) this receipt is linked to. */ documentId: string | undefined; /** * * The category of the receipt. */ category: string | undefined; /** * * The sub-category of the receipt. */ subCategory: string | undefined; /** * * The secret patient key, encrypted in the patient's own AES key. */ secretForeignKeys: Array; /** * * The patient id encrypted in the delegates' AES keys. */ cryptedForeignKeys: { [key: string]: Array; }; /** * * The delegations giving access to connected healthcare information. */ delegations: { [key: string]: Array; }; /** * * The keys used to encrypt this entity when stored encrypted. */ encryptionKeys: { [key: string]: Array; }; /** * * The base64-encoded encrypted fields of this entity. */ encryptedSelf: Base64String | undefined; /** * * The security metadata of the entity. */ securityMetadata: SecurityMetadata | undefined; readonly isEncrypted: true; constructor(partial: Partial); toJSON(): object; static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array): EncryptedReceipt; }