Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RAD-172 Clean radiology_report db #191

Merged
merged 1 commit into from
Mar 22, 2016
Merged

Conversation

teleivo
Copy link
Member

@teleivo teleivo commented Mar 22, 2016

update the database radiology_report

  • column radiology_report_id
    ** rename to report_id
  • column order_id
    ** add not null constraint (a report must not exist without order)
  • column report_status
    ** shrink size to max enum of RadiologyReportStatus which is DISCONTINUED -> 12
    ** add not null constraint
  • column principalResultsInterpreter_id
    ** rename to principal_results_interpreter
  • column creator
    ** add not null constraint, defauts to '0'
  • column creationDate
    ** rename to date_created
    ** convert type to datetime
    ** add not null constraint
  • rename foreign key constraints to "tablename_columname_fk"
  • remove setting dateCreated in RadiologyReport constructor since its
    done by AuditableInterceptor

see https://issues.openmrs.org/browse/RAD-172

update the database radiology_report
* column radiology_report_id
** rename to report_id
* column order_id
** add not null constraint (a report must not exist without order)
* column report_status
** shrink size to max enum of RadiologyReportStatus which is DISCONTINUED -> 12
** add not null constraint
* column principalResultsInterpreter_id
** rename to principal_results_interpreter
* column creator
** add not null constraint, defauts to '0'
* column creationDate
** rename to date_created
** convert type to datetime
** add not null constraint
* rename foreign key constraints to "tablename_columname_fk"

* remove setting dateCreated in RadiologyReport constructor since its
done by AuditableInterceptor
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 83.023% when pulling c1bdd35 on teleivo:RAD-172 into 0f560ed on openmrs:master.

teleivo added a commit that referenced this pull request Mar 22, 2016
RAD-172 Clean radiology_report db
@teleivo teleivo merged commit fe59a12 into openmrs:master Mar 22, 2016
@teleivo teleivo deleted the RAD-172 branch March 22, 2016 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants