@modernsoftwares/kids-study-research-platform
v1.0.3
Published
Kids Study Components Library
Downloads
3
Readme
Components
- ParticipantAddForm
- ParticipantEditForm
- ConsentAddForm
- ConsentEditForm
- InterviewStartForm
- InterviewConsentForm
- InterviewCategoryConsentForm
- InterviewParticipantContactForm
- NotificationsRemindersAlertsForm
- PhlebotomyStartForm
- PhlebotomyAddForm
- PhlebotomyEditForm
- PhlebotomyChecklistForm
- InstrumentQuestionsList
- InstrumentQuestionsAddForm
- InstrumentQuestionsEditForm
- InstrumentQuestionOptionsList
- InterviewAddForm
- InterviewEditForm
- InterviewParticipantAddForm,
- InterviewParticipantEditForm
- PhlebotomyInterviewParticipantAddForm
- PhlebotomyInterviewParticipantEditForm
- ParticipantSearch
- EmailInterviewStartForm
- EmailInterviewConsentForm
- EditParticipantGiftCardForm
- EmailGiftCardMain
- GiftCardFormModal
- GiftCardSettingsForm
- ViewParticipantGiftCardMain
- RoleForm
- UserAddForm
- UserEditForm
- MyProfileForm
- ParticipantFamilyTree
- InstrumentQuestionsDuplicateForm
- KidsStudyInterviewAddForm
- KidsStudyInterviewEditForm
- KidsStudyInterviewParticipantContactForm
- ContactAddEditForm
- KidsStudyEmailInterviewConsentForm
- KidsStudyParticipantAddForm
- KidsStudyParticipantEditForm
- KidsStudyInstrumentQuestionsAddForm
- KidsStudyInstrumentQuestionsEditForm
- KidsStudyInstrumentQuestionsDuplicateForm
- KidsStudyEmailInterviewStartForm
- KidsStudyInterviewStartForm
- MediaViewer
Installation
# install library
$ npm install @modernsoftwares/kids-study-research-platform
# view all components
$ npm start
Usage
import { ConsentAddForm, ConsentEditForm, InstrumentQuestionsAddForm, InstrumentQuestionsEditForm, InstrumentQuestionsList, InterviewCategoryConsentForm, InterviewConsentForm, InterviewParticipantContactForm, InterviewStartForm, NotificationsRemindersAlertsForm, ParticipantAddForm, ParticipantEditForm, PhlebotomyAddForm, PhlebotomyChecklistForm, PhlebotomyEditForm, PhlebotomyStartForm, InstrumentQuestionOptionsList, InterviewAddForm, InterviewEditForm, InterviewParticipantAddForm, InterviewParticipantEditForm, PhlebotomyInterviewParticipantAddForm, PhlebotomyInterviewParticipantEditForm, ParticipantSearch, EmailInterviewConsentForm, EmailInterviewStartForm, EditParticipantGiftCardForm, EmailGiftCardMain, GiftCardFormModal, GiftCardSettingsForm, ViewParticipantGiftCardMain, RoleForm, UserAddForm, UserEditForm, MyProfileForm, ParticipantFamilyTree, InstrumentQuestionsDuplicateForm, KidsStudyInterviewAddForm, KidsStudyInterviewEditForm, KidsStudyInterviewParticipantContactForm, ContactAddEditForm, KidsStudyEmailInterviewConsentForm,
KidsStudyParticipantAddForm, KidsStudyParticipantEditForm, KidsStudyInstrumentQuestionsAddForm, KidsStudyInstrumentQuestionsEditForm, KidsStudyInstrumentQuestionsDuplicateForm, KidsStudyEmailInterviewStartForm, KidsStudyInterviewStartForm, MediaViewer } from 'adhi-research-platform';
<ParticipantAddForm study_status={'study_status(0,1)'} is_transfer={'is_transfer(0,1)'} backend_url={'backend_url'} history={'useHistory'} getFormIsEdited={('isEdited') => {'showPrompt'}} />
<ParticipantEditForm id={'id'} backend_url={'backend_url'} history={'useHistory'} getFormIsEdited={('isEdited') => {'showPrompt'}}/>
<ConsentAddForm backend_url={'backend_url'} history={'useHistory'} />
<ConsentEditForm id={'id'} backend_url={'backend_url'} history={'useHistory'} />
<InterviewStartForm aid={'aid'} pid={'pid'} eid={'eid'} mid={'mid'} backend_url={'backend_url'} history={'useHistory'} />
<InterviewConsentForm aid={'aid'} pid={'pid'} eid={'eid'} mid={'mid'} backend_url={'backend_url'} history={'useHistory'} />
<InterviewCategoryConsentForm aid={'aid'} pid={'pid'} eid={'eid'} ceid={'ceid'} mid={'mid'} backend_url={'backend_url'} history={'useHistory'} />
<InterviewParticipantContactForm interview_id={'interview_id'} participant_id={'participant_id'} contact_id={'contact_id'} id={'id'}
backend_url={'backend_url'} history={'useHistory'} />
<NotificationsRemindersAlertsForm errorObj={'errorsOBJ'} setAlertValues={('values') => { 'setValuesFunction'}}/>
<PhlebotomyStartForm aid={'aid'} pid={'id'} eid={'id'} ansid={'ansid'} backend_url={'backend_url'} onDismiss={'props.onDismiss'} history={'useHistory'} />
<PhlebotomyAddForm backend_url={'backend_url'} history={'useHistory'} />
<PhlebotomyEditForm id="id" backend_url={'backend_url'} history={'useHistory'} />
<PhlebotomyChecklistForm id="id" backend_url={'backend_url'} history={'useHistory'} />
<InstrumentQuestionsList aid={'aid'} id={'id'} backend_url={'backend_url'} onDismiss={'props.onDismiss'} history={'useHistory'} />
<InstrumentQuestionsAddForm aid={'aid'} id={'id'} backend_url={'backend_url'} history={'useHistory'} />
<InstrumentQuestionsEditForm aid={'aid'} id={'id'} qid="qid" backend_url={'backend_url'} history={'useHistory'} />
<InstrumentQuestionOptionsList aid={'aid'} ins_id={'ins_id'} que_id={'que_id'} backend_url={'backend_url'} onDismiss={'props.onDismiss'}
history={'useHistory'} />
<InterviewAddForm backend_url={'backend_url'} history={'useHistory'} />
<InterviewEditForm id="id" backend_url={'backend_url'} history={'useHistory'} />
<InterviewParticipantAddForm id="id" backend_url={'backend_url'} history={'useHistory'} />
<InterviewParticipantEditForm interview_id="interview_id" staff_id="staff_id" backend_url={'backend_url'} urlmail="urlmail" consentMailUrl="consentMailUrl" history={'useHistory'} />
<PhlebotomyInterviewParticipantAddForm id="id" backend_url={'backend_url'} history={'useHistory'} />
<PhlebotomyInterviewParticipantEditForm interview_id="interview_id" staff_id="staff_id" backend_url={'backend_url'} urlmail="urlmail"
history={'useHistory'} />
<ParticipantSearch makeHttpRequest={'makeHttpRequest'} handleClear={'handleClear'} handleFind={'handleFind'} interviews={'interviews'}
completion_report={'completion_report(T/F)'} partial_completion_report={'partial_completion_report(T/F)'} />
<EmailInterviewStartForm aid={'aid'} pid={'pid'} eid={'eid'} mid={'mid'} backend_url={'backend_url'} history={'useHistory'} />
<EmailInterviewConsentForm aid={'aid'} pid={'pid'} eid={'eid'} mid={'mid'} backend_url={'backend_url'} history={'useHistory'} />
<EditParticipantGiftCardForm gift_card_id="gift_card_id" backend_url={'backend_url'} giftCardMailUrl="giftCardMailUrl" history={'useHistory'} />
<EmailGiftCardMain gift_card_id="gift_card_id" backend_url={'backend_url'} history={{}} />
<GiftCardFormModal interviews_arr={'interviews_arr'} handleModal={() => {'handleModal' }} isOpen={'open(T/F)'} participant_id="participant_id"
backend_url={'backend_url'} giftCardMailUrl="giftCardMailUrl" />
<GiftCardSettingsForm backend_url={'backend_url'} />
<ViewParticipantGiftCardMain gift_card_id="gift_card_id" backend_url={'backend_url'} />
<RoleForm id={'id'} backend_url={'backend_url'} history={'useHistory'} />
<UserAddForm backend_url={'backend_url'} history={'useHistory'} />
<UserEditForm id={'id'} backend_url={'backend_url'} history={'useHistory'} />
<MyProfileForm backend_url={'backend_url'} history={'useHistory'} />
<ParticipantFamilyTree backend_url={'backend_url'} history={'useHistory'} fam_id={'fam_id'} />
<InstrumentQuestionsDuplicateForm aid={'aid'} id={'id'} qid="qid" backend_url={'backend_url'} history={'useHistory'} />
<KidsStudyInterviewAddForm backend_url={'backend_url'} history={'useHistory'} />
<KidsStudyInterviewEditForm id="id" backend_url={'backend_url'} history={'useHistory'} />
<KidsStudyInterviewParticipantContactForm interview_id={'interview_id'} participant_id={'participant_id'} contact_id={'contact_id'} id={'id'}
backend_url={'backend_url'} history={'useHistory'} />
<ContactAddEditForm contact_id={'contact_id'} backend_url={'backend_url'} history={'useHistory'} />
<KidsStudyEmailInterviewConsentForm aid={'aid'} pid={'pid'} eid={'eid'} mid={'mid'} backend_url={'backend_url'} history={'useHistory'} />
<KidsStudyParticipantAddForm study_status={'study_status(0,1)'} is_transfer={'is_transfer(0,1)'} backend_url={'backend_url'} history={'useHistory'} getFormIsEdited={('isEdited') => {'showPrompt'}} />
<KidsStudyParticipantEditForm id={'id'} backend_url={'backend_url'} history={'useHistory'} getFormIsEdited={('isEdited') => {'showPrompt'}}/>
<KidsStudyInstrumentQuestionsAddForm aid={'2121'} id={'2121'} backend_url={'http://localhost/api/'} history={{}} />
<KidsStudyInstrumentQuestionsEditForm aid={'2121'} id={'2121'} qid="2121" backend_url={'http://localhost/api/'} history={{}} />
<KidsStudyInstrumentQuestionsDuplicateForm aid={'2121'} id={'2121'} qid="2121" backend_url={'http://localhost/api/'} history={{}} />
<KidsStudyEmailInterviewStartForm aid={'2121'} pid={'2121'} eid={'3222'} mid={'3222'} backend_url={'http://localhost/api/'} history={{}} />
<KidsStudyInterviewStartForm aid={'2121'} pid={'2121'} eid={'3222'} mid={'3222'} backend_url={'http://localhost/api/'} history={{}} />
<MediaViewer question={'question'} url={'url'} onAudioVideoProgress={'onAudioVideoProgress'} onAudioVideoEnded={'onAudioVideoEnded'} />