Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Result form(s) for labs #65

Closed
jkleinsc opened this issue Apr 6, 2015 · 3 comments
Closed

Result form(s) for labs #65

jkleinsc opened this issue Apr 6, 2015 · 3 comments
Labels
🚀enhancement an issue/pull request that adds a feature to the application help wanted indicates that an issue is open for contributions

Comments

@jkleinsc
Copy link
Member

jkleinsc commented Apr 6, 2015

Right now there is a generic result field for labs. At some point we should support generation of result forms like the following:
screen shot 2015-04-06 at 11 41 05 am

@jkleinsc jkleinsc added 🚀enhancement an issue/pull request that adds a feature to the application philippines labels Apr 6, 2015
@jkleinsc jkleinsc added the needs requirements indicates that an issue needs more requirements in order to be worked on label Jul 13, 2015
@tangollama
Copy link
Member

The same technology solution we need for #90 is what we need here. Form-builder capability.

@tangollama tangollama modified the milestone: HospitalRun 1.0 Oct 14, 2015
@tangollama tangollama removed their assignment Oct 16, 2015
@tangollama tangollama added Forms and removed needs requirements indicates that an issue needs more requirements in order to be worked on labels Feb 13, 2016
@tangollama
Copy link
Member

@taras this is another example of where a configurable form component is needed.

@tangollama tangollama added the help wanted indicates that an issue is open for contributions label Mar 15, 2016
@jkleinsc
Copy link
Member Author

This feature can be implemented by extending the custom forms feature to work with labs. This means doing the following:

  1. Add a new form type to https://github.com/HospitalRun/hospitalrun-frontend/blob/master/app/admin/custom-forms/edit/controller.js#L77-L82
  2. Modify https://github.com/HospitalRun/hospitalrun-frontend/blob/master/app/labs/edit/route.js to setup custom forms for new objects.
  customForms: inject.service(),
 
  getNewData() {
    let customForms = get(this, 'customForms');
    let newData = {
      customForms: Ember.Object.create()
    };
    return customForms.setDefaultCustomForms(['lab'], newData);
  },
  1. Add the following to https://github.com/HospitalRun/hospitalrun-frontend/blob/master/app/labs/edit/template.hbs:
{{custom-form-manager model=model formType="lab"}}

This will allow custom forms to be created and added to lab results.

matteovivona pushed a commit that referenced this issue Jan 15, 2021
…ble-to-rtl

test(imaging-request-tablet): convert to rtl
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🚀enhancement an issue/pull request that adds a feature to the application help wanted indicates that an issue is open for contributions
Projects
None yet
Development

No branches or pull requests

2 participants