forked from informatici/openhospital-gui
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Op 171 vezo 2 examination window changes (informatici#66)
* OP-171 #comment added UoM to Saturation parameter #time 30min * Re-mapped Examination module with immutable nullable types * Set all values to 'int' except UoM (String) and steps (double). - SAT_MAX deprecated (it is always 100) - HEIGHT_STEP default set to 1 (cm) * PatientExamination refactoring and settings - Fixed UoM: removed user defined UoM and adopted SI (Kg for the Weight and meter for the Height) - Renamed some DB fields names - Porting script for previous data * OP-171 #comment added Remove methods * Moved getBMIdescription() method to Manager * OP-171 #comment Added new fields HGT, Diuresis and Bowel * Included temporary step_XX in dockerfile * Update .travis.yml Debuggin docker * Debugging docker * Debugging Docker * Debugging Docker-Compose * Fixed table name cases * Removing debugger * Rename step_XX_examination_changes.sql to step_60_examination_changes.sql Op 172 vezo 3 laboratory default material (informatici#67) * Fixed Laboratory demo data * OP-172 #comment Added 'undefined' default material Op 173 vezo 4 new dicom features (informatici#68) * Enabled FileSystemDicomManager to Spring (@component) * Removed useless constructor's argument * Enabled JPG and JPEG formats * Added method for SeriesNumber exist check * Fixing DICOM libraries and dependencies * First version of JPEG compatibility in DICOM module * Added utility FileTools for retrieving information from filesystem * Added new Dialog upon dicom/images loading TODO: - possibility to add images to the same series - handle big size images (IndexOutOfBoundsException) Updated OH-core artifact version Upload changelog Fixed step_61 removed duplicated dependencies Fixed step_61 ADWA_6_print labels buttons added (informatici#73) * fixed pom.xml error Co-authored-by: nicola punzi <[email protected]> Op 207 automaticlot not working (informatici#93) * Commented useless methods * Removed no longer existing parameters from javadoc * More explanatory comments although the logic seems uselsess * OP-207 #comment fixed AUTOMATICLOT behavior #time 2h * Rearranged lot validation logic * Changed fields position * Fixed lot creation when LOTWITHCOST=no * Added missing testIoNewAutomaticDischargingMovementDifferentLots "first commit" - add lot information ward to ward ADWA_13_Lot_information_at_the_wards_level: added ward to ward lot information Fixed some tests TODO: - improved MovementWard validationsts with check on lot - fix remaining tests - verify that all movements between wards are consistent added AUTOMATICLOTWARD_TOWARD option and multiple discharge ward to added script Primary key MDSRWRD_LT_ID_A Fixed script and added comments Cosmetic changes to the code Fixed MovementWard tests added choose lot in rectify fixed bug implementation rectify Add some cleaning and refactoring TODO: missing javadocs Fixed some TODOs: simplified methods and added javadoc Finalized script step number Removed duplicated files from rebase Added missing method Fixed JPA mapping
- Loading branch information
Showing
20 changed files
with
401 additions
and
105 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
-- adding LOT id | ||
ALTER TABLE MEDICALDSRWARD | ||
ADD COLUMN MDSRWRD_LT_ID_A VARCHAR(50) NULL AFTER MDSRWRD_OUT_QTI, | ||
ADD INDEX FK_LOT (MDSRWRD_LT_ID_A ASC); | ||
ALTER TABLE MEDICALDSRWARD | ||
ADD CONSTRAINT FK_MEDICALDSRWARD_MEDICALDSRLOT | ||
FOREIGN KEY (MDSRWRD_LT_ID_A) | ||
REFERENCES MEDICALDSRLOT (LT_ID_A) | ||
ON DELETE NO ACTION | ||
ON UPDATE NO ACTION; | ||
|
||
ALTER TABLE MEDICALDSRSTOCKMOVWARD | ||
ADD COLUMN MMVN_LT_ID VARCHAR(50) NULL AFTER MMVN_WRD_ID_A_TO, | ||
ADD INDEX FK_FK_MEDICALDSRSTOCKMOVWARD_LOT (MMVN_LT_ID ASC); | ||
ALTER TABLE MEDICALDSRSTOCKMOVWARD | ||
ADD CONSTRAINT FK_MEDICALDSRSTOCKMOVWARD_LOT | ||
FOREIGN KEY (MMVN_LT_ID) | ||
REFERENCES MEDICALDSRLOT (LT_ID_A) | ||
ON DELETE NO ACTION | ||
ON UPDATE NO ACTION; | ||
|
||
-- adding medical id | ||
ALTER TABLE MEDICALDSRLOT | ||
ADD COLUMN LT_MDSR_ID INT(11) NULL AFTER LT_ID_A; | ||
ALTER TABLE MEDICALDSRLOT | ||
ADD INDEX FK_MEDICALDSRLOT_MEDICALDSR_idx (LT_MDSR_ID ASC); | ||
ALTER TABLE MEDICALDSRLOT | ||
ADD CONSTRAINT FK_MEDICALDSRLOT_MEDICALDSR | ||
FOREIGN KEY (LT_MDSR_ID) | ||
REFERENCES MEDICALDSR (MDSR_ID) | ||
ON DELETE NO ACTION | ||
ON UPDATE NO ACTION; | ||
|
||
-- populating medical id | ||
UPDATE MEDICALDSRLOT | ||
JOIN MEDICALDSRSTOCKMOV | ||
ON MEDICALDSRLOT.LT_ID_A = MEDICALDSRSTOCKMOV.MMV_LT_ID_A | ||
SET MEDICALDSRLOT.LT_MDSR_ID =MEDICALDSRSTOCKMOV.MMV_MDSR_ID; | ||
|
||
-- changing compound primary key | ||
ALTER TABLE MEDICALDSRWARD | ||
DROP FOREIGN KEY FK_MEDICALDSRWARD_MEDICALDSRLOT; | ||
ALTER TABLE MEDICALDSRWARD | ||
CHANGE COLUMN MDSRWRD_LT_ID_A MDSRWRD_LT_ID_A VARCHAR(50) NOT NULL , | ||
DROP PRIMARY KEY, | ||
ADD PRIMARY KEY (MDSRWRD_WRD_ID_A, MDSRWRD_MDSR_ID, MDSRWRD_LT_ID_A); | ||
ALTER TABLE MEDICALDSRWARD | ||
ADD CONSTRAINT FK_MEDICALDSRWARD_MEDICALDSRLOT | ||
FOREIGN KEY (MDSRWRD_LT_ID_A) | ||
REFERENCES MEDICALDSRLOT (LT_ID_A) | ||
ON DELETE NO ACTION | ||
ON UPDATE NO ACTION; |
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
Oops, something went wrong.