import {model, property} from '@loopback/repository'; import {Patient} from '@sourcefuse-npm/patient-facade'; @model() export class PatientOthersDetails extends Patient { @property({ type: 'number', id: true, generated: true, }) id?: number; @property({ jsonSchema: { type: 'array', items: {type: 'string'}, }, }) symptoms?: string[]; @property({ type: 'boolean', default: false, }) hospitalized?: boolean; @property({ type: 'string', name: 'assesment_code', default: null, }) assesmentCode?: string; @property({ type: 'string', name: 'assesment_name', default: null, }) assesmentName?: string; @property({ type: 'string', required: true, }) frequency: string; @property({ type: 'string', required: false, }) notes: string; constructor(data?: Partial) { super(data); } } export type PatientOthersDetailsWithRelations = PatientOthersDetails;