Skip to content

Commit

Permalink
add default intensity options in data dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzy11 committed Jul 8, 2024
1 parent 2385aa0 commit 24a2bee
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
Expand Down
29 changes: 28 additions & 1 deletion src/main/resources/liquibase/2.8.x.x/immunohistochemistry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2444,5 +2444,32 @@
<column name="name" value="ihc_breast_cancer_report_molecular_subtype" />
</insert>
</changeSet>

<changeSet author="mozzymutesa" id="8">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">select count(*) from clinlims.dictionary where dict_entry = 'Strong';
</sqlCheck>
</preConditions>
<comment>add default IHC Intensity Options in Dictionary</comment>
<insert tableName="dictionary" schemaName="clinlims">
<column name="id" valueSequenceNext="dictionary_seq" />
<column name="is_active" value="Y" />
<column name="lastupdated" valueComputed="${now}"/>
<column name="dict_entry" value="Strong" />
<column name="dictionary_category_id" valueComputed="(select id from dictionary_category where name = 'ihc_breast_cancer_report_intensity' limit 1)" />
</insert>
<insert tableName="dictionary" schemaName="clinlims">
<column name="id" valueSequenceNext="dictionary_seq" />
<column name="is_active" value="Y" />
<column name="lastupdated" valueComputed="${now}"/>
<column name="dict_entry" value="Weak" />
<column name="dictionary_category_id" valueComputed="(select id from dictionary_category where name = 'ihc_breast_cancer_report_intensity' limit 1)" />
</insert>
<insert tableName="dictionary" schemaName="clinlims">
<column name="id" valueSequenceNext="dictionary_seq" />
<column name="is_active" value="Y" />
<column name="lastupdated" valueComputed="${now}"/>
<column name="dict_entry" value="No" />
<column name="dictionary_category_id" valueComputed="(select id from dictionary_category where name = 'ihc_breast_cancer_report_intensity' limit 1)" />
</insert>
</changeSet>
</databaseChangeLog>

0 comments on commit 24a2bee

Please sign in to comment.