diff --git a/app/client/views/patients/patient.html b/app/client/views/patients/patient.html index ef34b55..edc4699 100644 --- a/app/client/views/patients/patient.html +++ b/app/client/views/patients/patient.html @@ -1,58 +1,41 @@ {{id}} {{hrid}} Created at {{fullDateTime createdAt}} {{#if study.title}} Study {{study.title}} {{/if}} {{#if numVisits}} Designs {{designs}} Visits {{numVisits}} {{/if}} {{#if languages}} Languages {{languages}} {{/if}} {{#if isExcluded}} Excluded yes {{/if}} - Edit - {{#autoForm schema=editPatientSchema doc=formDoc id="editPatientForm" type="normal" autosave=false}} - {{#each afFieldNames}} - {{> afQuickField name=this.name options=afOptionsFromSchema}} - {{/each}} - - - - - - - - - - - - {{/autoForm}} {{> Template.dynamic template=template data=templateData}} diff --git a/app/client/views/patients/patients.html b/app/client/views/patients/patients.html index 81770e7..77a20d8 100644 --- a/app/client/views/patients/patients.html +++ b/app/client/views/patients/patients.html @@ -1,125 +1,111 @@ {{title}} {{#if hrid}} {{hrid}} - {{id}} ({{study.title}} - {{studyDesignTitles}}) {{else}} {{id}} ({{study.title}} - {{studyDesignTitles}}) {{/if}} {{title}} ({{study.title}} - {{design.title}}) {{title}} clear selection {{#each visits}} {{> visitOption}} {{/each}} clear selection {{#each questionnaires}} {{> questionnaireOption}} {{/each}} clear selection {{#each studies}} {{> studyOption}} {{/each}} clear selection {{#each patients}} {{> patientOption}} {{/each}} {{#if singlePatient}} {{> visitSelect visits=visits}} {{/if}} - {{#unless singlePatient}} - - - {{#autoForm schema=addPatientsSchema id="addPatientsForm" type="normal" autosave=false class="form-inline"}} - {{#each afFieldNames}} - {{> afQuickField name=this.name options=afOptionsFromSchema template="bootstrap-horizontal" class="form-control"}} - {{/each}} - - Add Patient - - {{/autoForm}} - - - {{/unless}} {{#unless singlePatient}} {{> reactiveTable collection=patientsTableCursor settings=patientsRTS}} {{else}} {{#with selectedPatient}} {{> patient}} {{/with}} {{/unless}}
{{fullDateTime createdAt}}
{{study.title}}
{{designs}}
{{numVisits}}
{{languages}}
yes