This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added basic translations for report * feat: added report model * feat: added report tabs to visit page * feat: added report route to router * feat: added report page * feat: reports to visits children * feat: added add/delete report capabilities * fix: fixed diagnosisContainer issue on browser back history button * fix: display different report title based on type of visit * Modified Package.json for new NPM Deployment * fix: added next appointment and operative plans to opd form * Restore package.json to working state * Implement custom forms for OPD Report * Add custom forms attribute to report model * fix: saved report object * fix: added preview report feat * fix: added report by visit view * fix: added logic to show different report sections * fix: added some report translations * fix: edited report model * fix: implemented logic to toggle between show report and new report * Remove preview functionality from OPD Reports * Implement print button * Remove print section header * Write styles and markup for print page * Refactor report header into partial * Rename report types * fix style lint errors * fix: completed internationalization and lint fix * 0.9.18 * Incremented version number, added scope * fix: remove patientId field, fixed next appointment bug, removed unused translation * fix: change date fields to simple text * fix: fixed bug that has to do with page header title * Added .travis.yml file for building and deploying to npm * Removed ember test. Pretty much does the same as npm test * Allowing all branches to be tested and built * fix: added translations for discharge report * fix: modified report model to accommodate discharge report * fix: added discharge report * fix: added next appointment date to discharge report on save * fix: implemented next appointment as a mixin * fix: added translations for followup appointment message * fix: made sure a followup appointment exists before you generate discharge report * Add Hospital Info report header as option config * Add report model to patient-diagnosis and visit unit tests * fix: fixed report header conflict * Refactor report template * Add custom forms to discharge report * fix: added hospital info doc to environment * fix: create sample docs on couchdb * Change how "new" routes work Makes sure that if user redirects to url the patient is properly selected. * fix: made sure sample docs are created when deleted * Add query parameters to improve app navigation experience * set patient on visit models * Redirect reports/new to patients when no visit model * Clean up visit controller * Set visit on models * Update visit acceptance tests * Fix appointments new surgery test error * Remove double reference to visits controller * Display visit diagnosis appropriately * Fix Operative Plans display * fix: fixed translation lables for next appointments * fix: modified get futureAppointment to work for list of appointments * fix: implemented next appointments on both template and controller * fix: fix lint * FIx next appointments display * Added auto trigger hospitalrun-server refresh script on successful build * Fix reports controller bug * Add diagnosis container * Set patient on model if model is not new * Set visit on controller and add display current operative plan * Add `Completed By` field to report * Refactor reports template * Ensure reports.edit returns to visits.edit * Display patient procedures on report * Remove discharge report compulsory next appointment modal * Fix `completed by` on report page * Style select element properly; Add titles to report * fix: fix new user title bug after a new user has been added * Added deploy branches to .travis.yml * fix: fix test for new user title bug * fix: updated report template with testing attributes on fields * fix: update visit template with testing attributes on fields * fix: implemented acceptance tests for opd and discharge reports * Implement acceptance tests for OPD Report * Refactor code to conform with style guide * Fix nextAppointment bug
- Loading branch information
1 parent
5441db8
commit 88073bc
Showing
32 changed files
with
1,094 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import AbstractModel from 'hospitalrun/models/abstract'; | ||
import DS from 'ember-data'; | ||
|
||
export default AbstractModel.extend({ | ||
// Attributes | ||
reportDate: DS.attr('date'), | ||
customForms: DS.attr('custom-forms'), | ||
reportType: DS.attr('string'), | ||
surgeon: DS.attr('string'), | ||
|
||
// Associations | ||
visit: DS.belongsTo('visit', { async: false }), | ||
|
||
validations: { | ||
visit: { | ||
presence: true | ||
}, | ||
|
||
reportDate: { | ||
presence: true | ||
}, | ||
|
||
surgeon: { | ||
presence: { | ||
'if'(object) { | ||
return !object.get('visit.outPatient'); | ||
}, | ||
message: 'Please select a surgeon' | ||
} | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.