import { Base64String } from '../specializations/Base64String.mjs'; import { Encryptable } from './Encryptable.mjs'; import { PartnerType } from './PartnerType.mjs'; import { PartnershipStatus } from './PartnershipStatus.mjs'; import { PartnershipType } from './PartnershipType.mjs'; /** * * Represents a relationship between a patient and another person (contact person or another * patient). * / */ export interface Partnership extends Encryptable { /** * * The type of relationship (from CD-CONTACT-PERSON codes). */ type: PartnershipType | undefined; /** * * The status of the relationship. */ status: PartnershipStatus | undefined; /** * * The UUID of the contact person or patient in this relationship. */ partnerId: string | undefined; /** * * The type of entity partnerId refers to. When null the partner is either a patient or a * healthcare party (legacy behavior). */ partnerType: PartnerType | undefined; readonly isEncrypted: boolean; toJSON(): object; } /** * * Represents a relationship between a patient and another person (contact person or another * patient). * / */ export declare class DecryptedPartnership { /** * * The type of relationship (from CD-CONTACT-PERSON codes). */ type: PartnershipType | undefined; /** * * The status of the relationship. */ status: PartnershipStatus | undefined; /** * * The UUID of the contact person or patient in this relationship. */ partnerId: string | undefined; /** * * The type of entity partnerId refers to. When null the partner is either a patient or a * healthcare party (legacy behavior). */ partnerType: PartnerType | undefined; /** * * Deprecated. Description of the relationship from the other person to this patient. */ encryptedSelf: Base64String | undefined; readonly isEncrypted: false; constructor(partial: Partial); toJSON(): object; static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array): DecryptedPartnership; } /** * * Represents a relationship between a patient and another person (contact person or another * patient). * / */ export declare class EncryptedPartnership { /** * * The type of relationship (from CD-CONTACT-PERSON codes). */ type: PartnershipType | undefined; /** * * The status of the relationship. */ status: PartnershipStatus | undefined; /** * * The UUID of the contact person or patient in this relationship. */ partnerId: string | undefined; /** * * The type of entity partnerId refers to. When null the partner is either a patient or a * healthcare party (legacy behavior). */ partnerType: PartnerType | undefined; /** * * Deprecated. Description of the relationship from the other person to this patient. */ encryptedSelf: Base64String | undefined; readonly isEncrypted: true; constructor(partial: Partial); toJSON(): object; static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array): EncryptedPartnership; }