@upv/ushi-shared
Version:
Shared DTOs, types, and utilities for the USHI platform (LMS, Trials, Social, Wallet).
25 lines (24 loc) • 1.03 kB
TypeScript
import BaseDto from '../base/BaseDto';
import { ITrialParticipantProfileDto, ITrialParticipantProfile } from '../../../types/trialParticipantProfile';
/**
* TrialParticipantProfileDto
*
* DTO for representing a user's enrollment and status within a clinical trial.
*/
declare class TrialParticipantProfileDto extends BaseDto<ITrialParticipantProfileDto> {
protected _userId: string;
protected _trialId: string;
protected _participantCode?: string;
protected _enrollmentStatus: 'pending' | 'consented' | 'withdrawn' | 'completed';
protected _consentedAt?: number;
protected _siteId?: string;
constructor(data: ITrialParticipantProfileDto);
serialize(): Promise<ITrialParticipantProfile>;
get userId(): string;
get trialId(): string;
get participantCode(): string | undefined;
get enrollmentStatus(): 'pending' | 'consented' | 'withdrawn' | 'completed';
get consentedAt(): number | undefined;
get siteId(): string | undefined;
}
export default TrialParticipantProfileDto;