ใน Summary ยังไม่ปรากฏ สัญชาติ และเวลา Admit เวลาแก้ไขต้องไปเพิ่ม Code ตรงไหน อย่างไร ลองแล้วแต่ไม่สำเร็จ สมมติว่า Code ด้านล่างที่ส่งไป ถ้าจะแก้ให้ปรากฏสัญชาติ และก็เวลา Admit จะต้องแก้อย่างไรครับ ขอความช่วยเหลือหน่อยครับ
–เฝ hname I WIDTH ๚ sqlparam K SUBTYPE I Text sqltext K SUBTYPE I Text template K SUBTYPE I Binary db I WIDTH
script K SUBTYPE I Text
use_parameter I WIDTH module I WIDTH 2 last_update report_version ignore_presetvalue I WIDTH UREPORT-RG501 String^1277-9^460101000 select
"Thai" as eclinic ,
"Medicine" as admitdepart,
i.*,
pcn.cardno as CID_CODE,
concat(pt.pname,pt.fname," ",pt.lname) as PT_NAME,
concat(pt.addrpart," หมู่ ",pt.moopart," ต.",t3.name," อ.",t2.name," จ.",t1.name) as ADDRESS,
sx.name as SEX_NAME,
mr.name as MARRYSTATUS,
oc.name as OCCUPATION,
pt.birthday as DOB,
pt.informname as INFORMNAME,
concat("<",pt.informrelation,">") as INFORMRELATION,
pt.informaddr as INFORMADDR,
pty.name as PTTYPENAME,
wd.name as WARD_NAME,
sp.name as SPCLTY_NAME
from an_stat i
left outer join ptcardno pcn on pcn.hn=i.hn and pcn.cardtype="01"
left outer join patient pt on pt.hn=i.hn
left outer join sex sx on sx.code=pt.sex
left outer join marrystatus mr on mr.code=pt.marrystatus
left outer join occupation oc on oc.occupation=pt.occupation
left outer join pttype pty on pty.pttype=i.pttype
left outer join ward wd on wd.ward=i.ward
left outer join spclty sp on sp.spclty=i.spclty
left outer join thaiaddress t1 on t1.codetype="1" and t1.chwpart=pt.chwpart
left outer join thaiaddress t2 on t2.codetype="2" and t2.chwpart=pt.chwpart and t2.amppart=pt.amppart
left outer join thaiaddress t3 on t3.codetype="3" and t3.chwpart=pt.chwpart and t3.amppart=pt.amppart
and t3.tmbpart=pt.tmbpart
where i.an="460101000"
limit 1
ฌ TPF0 TppReportppReportAutoStopDataPipelineppDBPipelinePrinterSetup.BinNameManual feedPrinterSetup.DocumentNameReportPrinterSetup.PaperNameA4PrinterSetup.PrinterNameDefaultPrinterSetup.mmMarginBottomฮPrinterSetup.mmMarginLeftฮPrinterSetup.mmMarginRightฮPrinterSetup.mmMarginTopฮPrinterSetup.mmPaperHeight PrinterSetup.mmPaperWidth4 PrinterSetup.PaperSize Template.FileName.C:\DOCUME~1\Manoi\LOCALS~1\Temp\KSK-Report.RTM
DeviceTypeScreenOutlineSettings.CreateNode OutlineSettings.CreatePageNodes OutlineSettings.EnabledLeftATopNVersion7.0
mmColumnWidth DataPipelineNameppDBPipeline
TppDetailBand
ppDetailBand1mmBottomOffset mmHeight่' mmPrintPosition TppDBText ppDBText1UserNameDBText1AutoSize DataFieldanDataPipelineppDBPipelineFont.CharsetTHAI_CHARSET
Font.ColorclBlack Font.NameArial Font.Size
Font.StylefsBold Transparent DataPipelineNameppDBPipelinemmHeight[mmLeft/mmTop: mmWidth.hBandType TppDBText ppDBText2UserNameDBText2 DataFieldPT_NAMEDataPipelineppDBPipelineFont.CharsetTHAI_CHARSET
Font.ColorclBlack Font.NameEucrosiaUPC Font.Size
Font.StylefsBold Transparent DataPipelineNameppDBPipelinemmHeightmmLeft?mmTopึณ mmWidth๕2 BandType TppDBText ppDBText4UserNameDBText4AutoSize DataFieldMARRYSTATUSDataPipelineppDBPipelineFont.CharsetTHAI_CHARSET
Font.ColorclBlack Font.NameEucrosiaUPC Font.Size
Font.Style Transparent DataPipelineNameppDBPipelinemmHeightmmLeft& mmTopา mmWidth_ BandType TppDBText ppDBText5UserNameDBText5AutoSize DataFieldhnDataPipelineppDBPipelineFont.CharsetTHAI_CHARSET
Font.ColorclBlack Font.NameArial Font.Size
Font.StylefsBold Transparent DataPipelineNameppDBPipelinemmHeight[mmLeftY mmTop~mmWidthQBandType TppDBText ppDBText6UserNameDBText6AutoSize DataFieldADDRESSDataPipelineppDBPipelineFont.CharsetTHAI_CHARSET
Font.ColorclBlack Font.NameEucrosiaUPC Font.Size
Font.Style Transparent DataPipelineNameppDBPipelinemmHeightmmLeftฯ mmTopึณ mmWidth
BandType TppDBText ppDBText7UserNameDBText7AutoSize DataFieldSEX_NAMEDataPipelineppDBPipelineFont.CharsetTHAI_CHARSET
Font.ColorclBlack Font.NameEucrosiaUPC Font.Size
Font.StylefsBold Transparent DataPipelineNameppDBPipelinemmHeightmmLeftNmmTopA mmWidthQBandType TppDBText
ppDBText10UserNameDBText10AutoSize DataFieldregdateDataPipelineppDBPipeline
DisplayFormatd mmmm eeeeFont.CharsetTHAI_CHARSET
Font.ColorclBlack Font.NameEucrosiaUPC Font.Size
Font.StylefsBold Transparent DataPipelineNameppDBPipelinemmHeightmmLefttฝ mmTopG mmWidth“|BandType TppDBText
ppDBText12UserNameDBText12AutoSize DataFieldwardDataPipelineppDBPipelineFont.CharsetANSI_CHARSET
Font.ColorclBlack Font.NameArial Font.Size
Font.StylefsBold Transparent DataPipelineNameppDBPipelinemmHeightชmmLeftmmTopฆค mmWidthuBandType TppDBText ppDBText9UserNameDBText9AutoSize
BlankWhenZero DataFieldage_yDataPipelineppDBPipelineFont.CharsetANSI_CHARSET
Font.ColorclBlack Font.NameCourier New Font.Size
Font.StylefsBold
TextAlignment
taCenteredTransparent DataPipelineNameppDBPipelinemmHeightmmLeftRbmmTopc mmWidthชBandType TppDBText
ppDBText15UserNameDBText15AutoSize DataFieldDOBDataPipelineppDBPipeline
DisplayFormat
dd/mm/eeeeFont.CharsetANSI_CHARSET
Font.ColorclBlack Font.NameCourier New Font.Size
Font.Style
TextAlignment
taCenteredTransparent DataPipelineNameppDBPipelinemmHeight1mmLeftxmmTopN mmWidth8cBandType TppDBText
ppDBText16UserNameDBText14AutoSize DataField
OCCUPATIONDataPipelineppDBPipelineFont.CharsetTHAI_CHARSET
Font.ColorclBlack Font.NameEucrosiaUPC Font.Size
Font.Style Transparent DataPipelineNameppDBPipelinemmHeight'mmLeft่' mmTop mmWidthlึ BandType TppDBText
ppDBText19UserNameDBText19AutoSize DataFieldCID_CODEDataPipelineppDBPipelineFont.CharsetANSI_CHARSET
Font.ColorclBlack Font.NameCourier Font.Size
Font.Style Transparent DataPipelineNameppDBPipelinemmHeightิ#mmLeftถํ mmTopB mmWidthิ BandType TppDBText ppDBText3UserNameDBText3AutoSize
BlankWhenZero DataFieldage_mDataPipelineppDBPipelineFont.CharsetANSI_CHARSET
Font.ColorclBlack Font.NameCourier New Font.Size
Font.StylefsBold
TextAlignment
taCenteredTransparent DataPipelineNameppDBPipelinemmHeightmmLeftommTopc mmWidthฏRBandType TppDBText
ppDBText20UserNameDBText20AutoSize
BlankWhenZero DataFieldage_dDataPipelineppDBPipelineFont.CharsetANSI_CHARSET
Font.ColorclBlack Font.NameCourier New Font.Size
Font.StylefsBold
TextAlignment
taCenteredTransparent DataPipelineNameppDBPipelinemmHeightmmLeftWฟ mmTopc mmWidthชBandType TppDBText ppDBText8UserNameDBText8 DataField
INFORMNAMEDataPipelineppDBPipelineFont.CharsetTHAI_CHARSET
Font.ColorclBlack Font.NameEucrosiaUPC Font.Size
Font.StylefsBold Transparent DataPipelineNameppDBPipelinemmHeightmmLeftYHmmTopiไ mmWidth BandType TppDBText
ppDBText11UserNameDBText11 DataFieldINFORMRELATIONDataPipelineppDBPipelineFont.CharsetTHAI_CHARSET
Font.ColorclBlack Font.NameEucrosiaUPC Font.Size
Font.StylefsBold Transparent DataPipelineNameppDBPipelinemmHeightmmLeftฺ mmTopiไ mmWidth BandType TppDBText
ppDBText13UserNameDBText13AutoSize DataField
INFORMADDRDataPipelineppDBPipelineFont.CharsetTHAI_CHARSET
Font.ColorclBlack Font.NameEucrosiaUPC Font.Size
Font.Style Transparent DataPipelineNameppDBPipelinemmHeightQmmLeftaImmTop. mmWidth. BandType TppLabelppLabel1UserNameLabel1Caption B#"22%B2#2!Font.CharsetTHAI_CHARSET
Font.ColorclBlack Font.NameEucrosiaUPC Font.Size
Font.StylefsBold Transparent mmHeight่mmLeftฮ$ mmTopะ7mmWidthd BandType TppDBText
ppDBText14UserNameDBText16AutoSize DataField
PTTYPENAMEDataPipelineppDBPipelineFont.CharsetTHAI_CHARSET
Font.ColorclBlack Font.NameEucrosiaUPC Font.Size
Font.StylefsBold Transparent DataPipelineNameppDBPipelinemmHeightmmLeftฮ$ mmTopลmmWidth<SBandType TppDBText
ppDBText17UserNameDBText17AutoSize DataField WARD_NAMEDataPipelineppDBPipelineFont.CharsetTHAI_CHARSET
Font.ColorclBlack Font.NameEucrosiaUPC Font.Size
Font.StylefsBold Transparent DataPipelineNameppDBPipelinemmHeightAmmLeft๚<mmTopเ mmWidthbBandType TppDBText
ppDBText18UserNameDBText18AutoSize DataFieldSPCLTY_NAMEDataPipelineppDBPipelineFont.CharsetTHAI_CHARSET
Font.ColorclBlack Font.NameEucrosiaUPC Font.Size
Font.StylefsBold Transparent DataPipelineNameppDBPipelinemmHeightAmmLeft mmTopฯ mmWidth๛:BandType