陈长荣 2 сар өмнө
parent
commit
22c4e56c18

+ 9 - 2
jfcloud-gene-biz/src/main/java/com/github/jfcloud/gene/sample/service/biz/SampleAnimalImagingServiceImpl.java

@@ -137,13 +137,20 @@ public class SampleAnimalImagingServiceImpl extends ServiceImpl<SampleAnimalImag
 
         //需求说明,避免Micro-CT显像与CT显像混合
         animalImagingVo.setRequirements(animalImagingVo.getRequirements().replace("Micro-CT显像", "Micro-CT"));
+        //超声-心超数据,避免LVAWd与LVAW混合
+        UltrasoundVo ultrasound = animalImagingVo.getUltrasound();
+        if (StrUtil.isNotBlank(ultrasound.getHeartData())) {
+            ultrasound.setHeartData(ultrasound.getHeartData()
+                    .replace("LVAWd", "AWd")
+                    .replace("e'/a'", "e/a"));
+        }
         //活体成像-具体需求
         HtmlParseVo srParseVo = WordNodeFactory.html2xml(animalImagingVo.getLiveImaging().getSpecificRequirements());
         animalImagingVo.getLiveImaging().setSpecificRequirements(srParseVo.getContent());
         images.addAll(srParseVo.getImageCache());
         //超声-图片要求
-        HtmlParseVo imgParseVo = WordNodeFactory.html2xml(animalImagingVo.getUltrasound().getImageRequirements());
-        animalImagingVo.getUltrasound().setImageRequirements(imgParseVo.getContent());
+        HtmlParseVo imgParseVo = WordNodeFactory.html2xml(ultrasound.getImageRequirements());
+        ultrasound.setImageRequirements(imgParseVo.getContent());
         images.addAll(imgParseVo.getImageCache());
         //MicroCT-图片要求
         HtmlParseVo ctImgParseVo = WordNodeFactory.html2xml(animalImagingVo.getMicroCt().getImageRequirements());

+ 78 - 194
jfcloud-gene-biz/src/main/resources/ftlTemplate/animalImaging.ftl

@@ -2661,6 +2661,7 @@
 							</w:tc>
 						</w:tr>
 					</w:tbl>
+					<#if animalImage.requirements?? && animalImage.requirements?contains('活体成像') >
 					<w:p w14:paraId="7A28FE30" w14:textId="77777777" w:rsidR="00D53E0E" w:rsidRDefault="00D53E0E">
 						<w:pPr>
 							<w:spacing w:line="360" w:lineRule="auto"/>
@@ -3075,6 +3076,8 @@
 							</w:tc>
 						</w:tr>
 					</w:tbl>
+					</#if>
+					<#if animalImage.requirements?? && animalImage.requirements?contains('超声') >
 					<w:p w14:paraId="02B9768A" w14:textId="77777777" w:rsidR="00D53E0E" w:rsidRDefault="00D53E0E">
 						<w:pPr>
 							<w:spacing w:line="360" w:lineRule="auto"/>
@@ -3367,6 +3370,7 @@
 										</w:rPr>
 										<w:t xml:space="preserve"> </w:t>
 									</w:r>
+									<#if animalImage.ultrasound.heartAreaOther??>
 									<w:r w:rsidR="00F06417" w:rsidRPr="00F06417">
 										<w:rPr>
 											<w:rFonts w:hint="default"/>
@@ -3377,6 +3381,7 @@
 										</w:rPr>
 										<w:t xml:space="preserve"> ${animalImage.ultrasound.heartAreaOther!} </w:t>
 									</w:r>
+									</#if>
 								</w:p>
 							</w:tc>
 						</w:tr>
@@ -3676,6 +3681,7 @@
 										</w:rPr>
 										<w:t xml:space="preserve"> </w:t>
 									</w:r>
+									<#if animalImage.ultrasound.vesselAreaOther??>
 									<w:r w:rsidR="00F06417" w:rsidRPr="00F06417">
 										<w:rPr>
 											<w:rFonts w:hint="default"/>
@@ -3686,6 +3692,7 @@
 										</w:rPr>
 										<w:t xml:space="preserve"> ${animalImage.ultrasound.vesselAreaOther!} </w:t>
 									</w:r>
+									</#if>
 								</w:p>
 							</w:tc>
 						</w:tr>
@@ -3866,6 +3873,7 @@
 										</w:rPr>
 										<w:t xml:space="preserve"> </w:t>
 									</w:r>
+									<#if animalImage.ultrasound.abdomenAreaOther??>
 									<w:r w:rsidR="00F06417" w:rsidRPr="00F06417">
 										<w:rPr>
 											<w:rFonts w:ascii="Times New Roman" w:hAnsi="Times New Roman" w:cs="Times New Roman" w:hint="eastAsia"/>
@@ -3876,6 +3884,7 @@
 										</w:rPr>
 										<w:t xml:space="preserve"> ${animalImage.ultrasound.abdomenAreaOther!} </w:t>
 									</w:r>
+									</#if>
 								</w:p>
 							</w:tc>
 						</w:tr>
@@ -3965,7 +3974,7 @@
 											<w:sz w:val="28"/>
 											<w:szCs w:val="28"/>
 										</w:rPr>
-										<#if animalImage.ultrasound.heartData?? && animalImage.ultrasound.heartData?contains('LVAWd') >
+										<#if animalImage.ultrasound.heartData?? && animalImage.ultrasound.heartData?contains('AWd') >
 											<w:sym w:font="Wingdings 2" w:char="F052"/>
 										<#else >
 											<w:sym w:font="Wingdings 2" w:char="F0A3"/>
@@ -4445,6 +4454,8 @@
 							</w:tc>
 						</w:tr>
 					</w:tbl>
+					</#if>
+					<#if animalImage.requirements?? && animalImage.requirements?contains('Micro') >
 					<w:p w14:paraId="097E5F2B" w14:textId="77777777" w:rsidR="00D53E0E" w:rsidRDefault="00D53E0E">
 						<w:pPr>
 							<w:spacing w:line="360" w:lineRule="auto"/>
@@ -4860,6 +4871,7 @@
 										</w:rPr>
 										<w:t xml:space="preserve"> </w:t>
 									</w:r>
+									<#if animalImage.microCt.boneAreaOther??>
 									<w:r w:rsidR="00F06417" w:rsidRPr="00F06417">
 										<w:rPr>
 											<w:rFonts w:hint="default"/>
@@ -4870,6 +4882,7 @@
 										</w:rPr>
 										<w:t xml:space="preserve"> ${animalImage.microCt.boneAreaOther!} </w:t>
 									</w:r>
+									</#if>
 								</w:p>
 							</w:tc>
 						</w:tr>
@@ -5084,6 +5097,7 @@
 										</w:rPr>
 										<w:t xml:space="preserve"> </w:t>
 									</w:r>
+									<#if animalImage.microCt.boneImplantPositionOther??>
 									<w:r w:rsidR="00F06417" w:rsidRPr="00F06417">
 										<w:rPr>
 											<w:rFonts w:hint="default"/>
@@ -5094,6 +5108,7 @@
 										</w:rPr>
 										<w:t xml:space="preserve"> ${animalImage.microCt.boneImplantPositionOther!} </w:t>
 									</w:r>
+									</#if>
 								</w:p>
 							</w:tc>
 						</w:tr>
@@ -5370,6 +5385,7 @@
 										</w:rPr>
 										<w:t xml:space="preserve"> </w:t>
 									</w:r>
+									<#if animalImage.microCt.preprocessOther??>
 									<w:r w:rsidR="00F06417" w:rsidRPr="00F06417">
 										<w:rPr>
 											<w:rFonts w:hint="default"/>
@@ -5380,6 +5396,7 @@
 										</w:rPr>
 										<w:t xml:space="preserve"> ${animalImage.microCt.preprocessOther!} </w:t>
 									</w:r>
+									</#if>
 								</w:p>
 							</w:tc>
 						</w:tr>
@@ -5687,6 +5704,7 @@
 										</w:rPr>
 										<w:t xml:space="preserve"> </w:t>
 									</w:r>
+									<#if animalImage.microCt.materialPropertiesOther??>
 									<w:r w:rsidR="00F06417" w:rsidRPr="00F06417">
 										<w:rPr>
 											<w:rFonts w:hint="default"/>
@@ -5697,6 +5715,7 @@
 										</w:rPr>
 										<w:t xml:space="preserve"> ${animalImage.microCt.materialPropertiesOther!} </w:t>
 									</w:r>
+									</#if>
 								</w:p>
 							</w:tc>
 						</w:tr>
@@ -6306,6 +6325,7 @@
 							</w:tc>
 						</w:tr>
 					</w:tbl>
+					</#if>
 					<w:p w14:paraId="5123A95C" w14:textId="77777777" w:rsidR="00F06417" w:rsidRDefault="00F06417" w:rsidP="00F06417">
 						<w:pPr>
 							<w:spacing w:line="360" w:lineRule="auto"/>
@@ -6391,54 +6411,23 @@
 											<w:szCs w:val="24"/>
 											<w:u w:val="single"/>
 										</w:rPr>
-										<w:t xml:space="preserve"> </w:t>
-									</w:r>
-									<w:r>
-										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman"/>
-											<w:b/>
-											<w:color w:val="000000"/>
-											<w:kern w:val="0"/>
-											<w:sz w:val="24"/>
-											<w:szCs w:val="24"/>
-											<w:u w:val="single"/>
-										</w:rPr>
-										<w:t xml:space="preserve"> </w:t>
-									</w:r>
-									<w:r>
-										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman" w:hint="eastAsia"/>
-											<w:b/>
-											<w:color w:val="000000"/>
-											<w:kern w:val="0"/>
-											<w:sz w:val="24"/>
-											<w:szCs w:val="24"/>
-											<w:u w:val="single"/>
-										</w:rPr>
-										<w:t xml:space="preserve">      </w:t>
-									</w:r>
-									<w:r>
-										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman"/>
-											<w:b/>
-											<w:color w:val="000000"/>
-											<w:kern w:val="0"/>
-											<w:sz w:val="24"/>
-											<w:szCs w:val="24"/>
-											<w:u w:val="single"/>
-										</w:rPr>
-										<w:t xml:space="preserve">   </w:t>
-									</w:r>
-									<w:r w:rsidR="00886821" w:rsidRPr="00886821">
-										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman" w:hint="eastAsia"/>
-											<w:bCs/>
-											<w:color w:val="000000"/>
-											<w:kern w:val="0"/>
-											<w:sz w:val="24"/>
-											<w:szCs w:val="24"/>
-										</w:rPr>
-										<w:t xml:space="preserve"> </w:t>
+										<#if createBySign??>
+											<w:t xml:space="preserve">  </w:t>
+											<w:pict>
+												<v:shape o:spt="75" alt="" type="#_x0000_t75"
+														 style="height:20pt; width:40pt;" filled="f"
+														 o:preferrelative="t" stroked="f" coordsize="21600,21600">
+													<v:path/>
+													<v:fill on="f" focussize="0,0"/>
+													<v:stroke on="f"/>
+													<v:imagedata r:id="rIdCreateBySign" o:title=""/>
+													<o:lock v:ext="edit" aspectratio="t"/>
+												</v:shape>
+											</w:pict>
+											<w:t xml:space="preserve">  </w:t>
+										<#else >
+											<w:t xml:space="preserve">                </w:t>
+										</#if>
 									</w:r>
 									<w:r>
 										<w:rPr>
@@ -6462,36 +6451,13 @@
 									</w:r>
 									<w:r>
 										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman" w:hint="eastAsia"/>
-											<w:b/>
-											<w:kern w:val="0"/>
-											<w:sz w:val="24"/>
-											<w:szCs w:val="24"/>
-											<w:u w:val="single"/>
-										</w:rPr>
-										<w:t xml:space="preserve"> </w:t>
-									</w:r>
-									<w:r>
-										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman"/>
-											<w:b/>
-											<w:kern w:val="0"/>
-											<w:sz w:val="24"/>
-											<w:szCs w:val="24"/>
-											<w:u w:val="single"/>
-										</w:rPr>
-										<w:t xml:space="preserve">   </w:t>
-									</w:r>
-									<w:r>
-										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman" w:hint="eastAsia"/>
-											<w:b/>
+											<w:rFonts w:hint="default"/>
 											<w:kern w:val="0"/>
 											<w:sz w:val="24"/>
 											<w:szCs w:val="24"/>
 											<w:u w:val="single"/>
 										</w:rPr>
-										<w:t xml:space="preserve">        </w:t>
+										<w:t xml:space="preserve"> ${createDateStr!'           '} </w:t>
 									</w:r>
 								</w:p>
 								<w:p w14:paraId="55A19C80" w14:textId="5FC03E22" w:rsidR="00D53E0E" w:rsidRDefault="00000000" w:rsidP="00886821">
@@ -6528,54 +6494,23 @@
 											<w:szCs w:val="24"/>
 											<w:u w:val="single"/>
 										</w:rPr>
-										<w:t xml:space="preserve"> </w:t>
-									</w:r>
-									<w:r>
-										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman"/>
-											<w:b/>
-											<w:color w:val="000000"/>
-											<w:kern w:val="0"/>
-											<w:sz w:val="24"/>
-											<w:szCs w:val="24"/>
-											<w:u w:val="single"/>
-										</w:rPr>
-										<w:t xml:space="preserve"> </w:t>
-									</w:r>
-									<w:r>
-										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman" w:hint="eastAsia"/>
-											<w:b/>
-											<w:color w:val="000000"/>
-											<w:kern w:val="0"/>
-											<w:sz w:val="24"/>
-											<w:szCs w:val="24"/>
-											<w:u w:val="single"/>
-										</w:rPr>
-										<w:t xml:space="preserve">      </w:t>
-									</w:r>
-									<w:r>
-										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman"/>
-											<w:b/>
-											<w:color w:val="000000"/>
-											<w:kern w:val="0"/>
-											<w:sz w:val="24"/>
-											<w:szCs w:val="24"/>
-											<w:u w:val="single"/>
-										</w:rPr>
-										<w:t xml:space="preserve">   </w:t>
-									</w:r>
-									<w:r w:rsidR="00886821" w:rsidRPr="00886821">
-										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman" w:hint="eastAsia"/>
-											<w:b/>
-											<w:color w:val="000000"/>
-											<w:kern w:val="0"/>
-											<w:sz w:val="24"/>
-											<w:szCs w:val="24"/>
-										</w:rPr>
-										<w:t xml:space="preserve"> </w:t>
+										<#if departLeaderSign??>
+											<w:t xml:space="preserve">  </w:t>
+											<w:pict>
+												<v:shape o:spt="75" alt="" type="#_x0000_t75"
+														 style="height:20pt; width:40pt;" filled="f"
+														 o:preferrelative="t" stroked="f" coordsize="21600,21600">
+													<v:path/>
+													<v:fill on="f" focussize="0,0"/>
+													<v:stroke on="f"/>
+													<v:imagedata r:id="rIdDepartLeaderSign" o:title=""/>
+													<o:lock v:ext="edit" aspectratio="t"/>
+												</v:shape>
+											</w:pict>
+											<w:t xml:space="preserve">  </w:t>
+										<#else >
+											<w:t xml:space="preserve">                </w:t>
+										</#if>
 									</w:r>
 									<w:r>
 										<w:rPr>
@@ -6599,36 +6534,13 @@
 									</w:r>
 									<w:r>
 										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman" w:hint="eastAsia"/>
-											<w:b/>
-											<w:kern w:val="0"/>
-											<w:sz w:val="24"/>
-											<w:szCs w:val="24"/>
-											<w:u w:val="single"/>
-										</w:rPr>
-										<w:t xml:space="preserve"> </w:t>
-									</w:r>
-									<w:r>
-										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman"/>
-											<w:b/>
-											<w:kern w:val="0"/>
-											<w:sz w:val="24"/>
-											<w:szCs w:val="24"/>
-											<w:u w:val="single"/>
-										</w:rPr>
-										<w:t xml:space="preserve">   </w:t>
-									</w:r>
-									<w:r>
-										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman" w:hint="eastAsia"/>
-											<w:b/>
+											<w:rFonts w:hint="default"/>
 											<w:kern w:val="0"/>
 											<w:sz w:val="24"/>
 											<w:szCs w:val="24"/>
 											<w:u w:val="single"/>
 										</w:rPr>
-										<w:t xml:space="preserve">        </w:t>
+										<w:t xml:space="preserve"> ${departLeaderDateStr!'           '} </w:t>
 									</w:r>
 								</w:p>
 								<w:p w14:paraId="2635E834" w14:textId="4741BEFE" w:rsidR="00D53E0E" w:rsidRDefault="00000000" w:rsidP="00886821">
@@ -6666,28 +6578,23 @@
 											<w:szCs w:val="24"/>
 											<w:u w:val="single"/>
 										</w:rPr>
-										<w:t xml:space="preserve">         </w:t>
-									</w:r>
-									<w:r w:rsidR="00886821">
-										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman" w:hint="eastAsia"/>
-											<w:b/>
-											<w:kern w:val="0"/>
-											<w:sz w:val="24"/>
-											<w:szCs w:val="24"/>
-											<w:u w:val="single"/>
-										</w:rPr>
-										<w:t xml:space="preserve">   </w:t>
-									</w:r>
-									<w:r w:rsidR="00886821" w:rsidRPr="00886821">
-										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman" w:hint="eastAsia"/>
-											<w:b/>
-											<w:kern w:val="0"/>
-											<w:sz w:val="24"/>
-											<w:szCs w:val="24"/>
-										</w:rPr>
-										<w:t xml:space="preserve"> </w:t>
+										<#if projectManagementSign??>
+											<w:t xml:space="preserve">  </w:t>
+											<w:pict>
+												<v:shape o:spt="75" alt="" type="#_x0000_t75"
+														 style="height:20pt; width:40pt;" filled="f"
+														 o:preferrelative="t" stroked="f" coordsize="21600,21600">
+													<v:path/>
+													<v:fill on="f" focussize="0,0"/>
+													<v:stroke on="f"/>
+													<v:imagedata r:id="rIdProjectManagementSign" o:title=""/>
+													<o:lock v:ext="edit" aspectratio="t"/>
+												</v:shape>
+											</w:pict>
+											<w:t xml:space="preserve">  </w:t>
+										<#else >
+											<w:t xml:space="preserve">                   </w:t>
+										</#if>
 									</w:r>
 									<w:r>
 										<w:rPr>
@@ -6711,36 +6618,13 @@
 									</w:r>
 									<w:r>
 										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman"/>
-											<w:b/>
-											<w:kern w:val="0"/>
-											<w:sz w:val="24"/>
-											<w:szCs w:val="24"/>
-											<w:u w:val="single"/>
-										</w:rPr>
-										<w:t xml:space="preserve">   </w:t>
-									</w:r>
-									<w:r>
-										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman" w:hint="eastAsia"/>
-											<w:b/>
-											<w:kern w:val="0"/>
-											<w:sz w:val="24"/>
-											<w:szCs w:val="24"/>
-											<w:u w:val="single"/>
-										</w:rPr>
-										<w:t xml:space="preserve">      </w:t>
-									</w:r>
-									<w:r>
-										<w:rPr>
-											<w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:cs="Times New Roman"/>
-											<w:b/>
+											<w:rFonts w:hint="default"/>
 											<w:kern w:val="0"/>
 											<w:sz w:val="24"/>
 											<w:szCs w:val="24"/>
 											<w:u w:val="single"/>
 										</w:rPr>
-										<w:t xml:space="preserve">   </w:t>
+										<w:t xml:space="preserve"> ${projectManagementDateStr!'           '} </w:t>
 									</w:r>
 								</w:p>
 							</w:tc>