Hệ mã công khai RSA và ứng dụng bảo mật trong trao đổi tài liệu lâm sàng CDA (Luận văn thạc sĩ)Hệ mã công khai RSA và ứng dụng bảo mật trong trao đổi tài liệu lâm sàng CDA (Luận văn thạc sĩ)Hệ mã công khai RSA và ứng dụng bảo mật trong trao đổi tài liệu lâm sàng CDA (Luận văn thạc sĩ)Hệ mã công khai RSA và ứng dụng bảo mật trong trao đổi tài liệu lâm sàng CDA (Luận văn thạc sĩ)Hệ mã công khai RSA và ứng dụng bảo mật trong trao đổi tài liệu lâm sàng CDA (Luận văn thạc sĩ)Hệ mã công khai RSA và ứng dụng bảo mật trong trao đổi tài liệu lâm sàng CDA (Luận văn thạc sĩ)Hệ mã công khai RSA và ứng dụng bảo mật trong trao đổi tài liệu lâm sàng CDA (Luận văn thạc sĩ)Hệ mã công khai RSA và ứng dụng bảo mật trong trao đổi tài liệu lâm sàng CDA (Luận văn thạc sĩ)Hệ mã công khai RSA và ứng dụng bảo mật trong trao đổi tài liệu lâm sàng CDA (Luận văn thạc sĩ)Hệ mã công khai RSA và ứng dụng bảo mật trong trao đổi tài liệu lâm sàng CDA (Luận văn thạc sĩ)
Trang 3L Nguy n H i Ninh
Trang 4M C L C
Trang
L I C i
L iii
M C L C iv
DANH M NG vi
DANH M NH vii
M U 1
1 CHU 2
CLINICAL DOCUMENT ARCHITECTURE 2
1.1 Gi i thi u chung 2
1.1.1 M t k chu u CDA [3] 2
t c a m u CDA 3
1.2 C u CDA 4
1.2.1 C u CDA .4
1.2.2 C u CDA 7
1.2.3 C a m t Entry .14
u d li u - HL7 Reference Information Model(RIM) 19
1.3.1 M t s m quan tr 19
1.3.2 HL7 V3 Data Types 20
v ng HL7 Vocbulary Domains 20
sinh m u CDA 21
1.5 M t s c s d ng trong vi c g n u .22
u CDA khi duy t IE 26
2 N TH N V H 27
2.1 Gi i thi u chung 27
m h m 27
2.1.2 H m 29
2.2 H 30
Trang 5ng RSA 30
ng t m t RSA .31
2.2.3 M t s ng v RSA 37
m c a h m 39
3 K T QU 41
c s d ng trong b nh vi n .41
3.1.1 N i dung h ng 41
b 45
ng d ng H 53 3.2.1 ng d ng thu A 53
ng d ng H CDA 54
u CDA 56
3.3.1 D li 56
57
u CDA d 58
3.3.4 Module gi u 59
3.3.5 Giao di 60
n Header ho c Body 61
3.4.1 Thu n Header ho c Body 61
3.4.2 Thu n Header ho c Body 62
c Body .63
3.5 M t s Modules c 63
3.5.1 Module RSA 63
3.5.2 Module ReadDOM 63
3.5.3 M t s v qu 64
K T LU N NGH 65
U THAM KH O 66
Trang 6DANH M NG
B a Header 6
B ng 1.2: Quan h p trong Header 7
B ng 1.3: C u CDA 8
B a Section 8
B ng c a Section 9
B c a Section 9
B tr nh d ng 13
B ng tham gia m t Entry 15
B ng 1.9: Quan h trong m t Entry 17
B ng 1.10: Quan h entry-Entry Relationships 18
B 22
B ng 1.12: Di n gi i 24
B c t a H RSA 34
B ng 3.1: C b 47
Trang 7DANH M NH
u CDA [3] 5
u CDA 21
gi u CDA 22
28
p s d 29
p s d i nh n 30
p s d t S 39
p s d gi gi t S 39
thu 54
u CDA 55
u CDA d ng XML 56
u CDA 57
58
u CDA 59
60
n Header ho c Body 61
n Header ho c Body 62
u CDA 63
Trang 8u CDA hai m c: Ph n Header c a c section
n m trong component thu c ph n Body
Trang 91 CHU
CLINICAL DOCUMENT ARCHITECTURE 1.1 Gi i thi u chung.
i American National Standards Institute/ Health Level Seven International (ANSI/HL7) V i s n v thi t k c
b i vi c c p nh li u (Data type), lo i b , b sung m t
Trang 13ng tham gia c n ph trong Header
-R(restricted) (codeSystem 2.16.840.1.113883.5.25);
-V(very restricted) (codeSystem 2.16.840.1.113883.5.25);
6 ClinicalDocument.languageCode
c th hi
nh qua chu n: IETF (Internet Engineering Task Force) RFC 3066
Trang 141.2.1.3 Quan h gi n trong Header
Trang 15S d
Trang 16b ng tham gia trong m t section
c Quan h trong m t section
Lc
xen nhau
ch
li u CDA
ng text c a section (Section.text field)
Trang 17v u Th c ch hi n th ph t trong kh
c n ph h tr c a m
li u MIME chu
bao g i dung sau:
N i dung tag <content>
Trang 18Tham chi n m t d li u multimedia-tag <renderMultiMedia>.
Trang 19gi i c tham chi u c
t links ho t footnotes
Trang 20tr nh d ng-styleCoda attribute.
- nh d ng font
Font style (Defines font rendering characteristics.)
Underline Render with an underlines font
Italics Render italicized
Emphasis Render with some type of emphasis
- nh d ng b ng
Lrule Render cell with left-sided rule
Rrule Render cell with right-side rule
Toprule Render cell with rule on top
Botrule Render cell with rule on buttom
- nh d
Arabic List is ordered using arabic numerals : 1,2,3.LittleRoman List is ordered using little Roman numerals: i, ii, iii.BigRoman List is ordered using big Roman numerals: I, II, III.LittleAlpha List is ordered using little alpha characters: a, b, c.BigAlpha List is ordered using big alpha characters:A, B, C.Unordered list style (defines rendering characterristics for unordered listS)Dics List bullets are simple soild discs
Circle List bullets are hollow discs
Square List bullets are soild squares
Trang 21- :
<sestion>
<text><content styleCode="bold">This is rendered bold,
<content styleCode="Italics">this is rendered bold and
Italicized, </content>thi si rendered bold </content>
<content styleCode="Bold Italics">This is also rendered
Bold and italicized</content>
</test>
</section>
i v t n m trong kh i narrative block
- tham chi n tag<content> c a kh i narriative block
Trang 22B ng tham gia m t Entry
M t d n xu t t
c sd
Trang 23hi ng th i m t sthu
u l c theo:Procedure.id, Procedure.moodCode
8 Substance
Administration
c d n xu t t RIM SubstanceAdministrationclquan h v s d ng thu c cho b
Khi SubstanceAdministration.Negationind nh
hi u l c
ng th i m t s thu
:SubstanceAdministration.id,SubstanceAdministration.moodCode
9 Supply
c d n xu t t RIM
t v s cung c p v
t , bao g m thuv
u tr b nh
Trang 241.3.2.2 Quan h trong m t Entry
ph n body c
ghi inh t section
Trang 25c th
b nh ph m (mnghi m)
7 Subject
y
u CDA
i subject trong CDA entry khi
section
1.3.2.3 Quan h entry-Entry Relationships
B ng 1.10: Quan h entry-Entry Relationships
3 ReferenceRange Quan h
n Observation
Trang 26a ObservationRange.
Trang 28- RIM (Reference Information Model)
- D-MIM(Domain Message Information Model)
- R-MIM(Refined Message Information Model)
- HMD (HerarchZal Message Definitions)
Trang 292 <observation classCode="OBS" moodCode="EVN">
3 <code code="271807003" codeSystem="2.16.804.1.113883.6.96"
CDA instance
CDA Res/Rep
Web browser
Receiver
CDA instance
CDA repository
DBCDA
extractor
Trang 306 <methodCode="32750006" codeSystem="2.16.840.1.113883.6.96"
displayName="Inspection"/><targetSiteCode code ="48856004" codeSystem="2.16.840.1.113883.6.96"
8 codeSystemName="SNOMED CT" displayName="Skin of palmer surface of index finger">
9 <qualifier>
10 <name code="78615007" codeSytem="2.16.840.1.113883.6.96"
11 codeSystemName="SNOMED CT" displayName="with laterality"/>
12 <value code="7771000" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="left"/>
Trang 331.6 u CDA khi duy t IE
Trang 35p = 61 s th nh t (gi t ho c h y sau khi t
q = 53 s th hai (gi t ho c h y sau khi t
n = pq = 3233
e = 17 s
p (e,encrypt(m) = mod n = mod 3233
Trang 43y1 = (M1)-1(mod m1), y2 = (M2)-1(mod m2 k = (Mk)-1(mod mk)
(M1)-1 (mod m1) o theo modulo c a m1v i
'
n c
m d
Trang 55ng
Trang 60M
Trang 64u
Trang 653.3.3 u CDA d ng XML sau khi
:
th c m t ssau:
<title>PHI
<title>AAAYaAAAzTUAAM60AAC6KwAAOxkAAO7dAACDHgAAzTUAADzQAADcsgAAzTUAAO7dAACDHgAAqJYAAA5rAADcsgAA7t0AADXyAAA80AAA7t0AAKnyAADOtAAAEyUAANyyAADu3QABGiAAAChfAAC41QABHZoAAOHyAADu3QAA/5wAAQGMAADd+QAA7t0AAMWMAAEG7QABHZoAAQGMAADu3QABHZoAAQGMAAEQsgABHZoAAO7dAAD/nAABBcQAAO7dAAEzYQAAzTUAAJpsAACDHgAAy/cAAO7dAADu3QAA4t0 </title>
Trang 67file output_CDA-5454.xml xem), nh th Show
Gi
c 1: Ch n file output_CDA-5454.xml ch a b u CDA-5454, m
output_CDA-5454.xml xem)
Trang 68Ch n Header ho c Body
Ch n file CDA
Trang 693.4.2 Thu gi n Header ho c Body
B n gi
Ch n file b
Ch n bL
n gi
Trang 73[4] Jung, S W., Choe, M.S., Yoo, S.Y., Park, H.K (2005), Development
of CDA Authoring Tool: CDA Studio IEEE, 307-310
[5] Huang K-H, Hsieh S-H, Chang Y-J, et al Bull Amer Math Soc., Application of portable CDA for secure clinical-document exchange J Med Syst2010; 34(4): 531 539
M t s Website tham kh o
http://www.hl7.org/implement/standards/product_brief.cfm?product_id=7http://archives.math.utk.edu/ICTCM/i/17/C052.html, RSA Cryptosystem and Its Applications, accessed on may, 2015
Trang 74PH L C
public class myDOM {
public static String fileSourceInput = "books.xml";
public static ArrayList<Element> listRootValue, listNode1Value, listNode2Value, listNode3Value, listNode4Value, listNode5Value, listNode6Value, listNode7Value, listNode8Value;
public static ArrayList<Element> listRoot, listNode1, listNode2, listNode3, listNode4, listNode5, listNode6, listNode7, listNode8;
public static Element root;
public static Document document;
public static String fileSourceOut="docSave.xml";
// t o ra jdom document
public static org.jdom.Document openFileSource(String fileName) {
try {
// Create a builder factory
SAXBuilder builder = new SAXBuilder();
//jdomDoc = builder.build(new FileInputStream(xmlFile));
Trang 75public static void saveMyCDA(String desFileName, org.jdom.Document CDABuffer) {
try {
XMLOutputter outputter = new XMLOutputter();
outputter.output(CDABuffer, new FileOutputStream(desFileName));
Trang 76}
public RSA()
{
private_key = new Key();
public_key = new Key();
Trang 78c = ecl.ModOf(p, public_key.getM(), public_key.getN());
cipher_byte[j] = (byte)((c >> 24) & 0xff);
Trang 79cipher_byte[j] = (byte)(c & 0xff);
Trang 81temp = (byte)((k & 0x30) >> 4);
cipher_byte[j] = (byte)(cipher_byte[j] | temp);
j++;
cipher_byte[j] = (byte)((k & 0x0f) << 4);
i++;
k = IndexInBase64(cipher_text.charAt(i));
temp = (byte)((k & 0x3c) >> 2);
cipher_byte[j] = (byte)(cipher_byte[j] | temp);
j++;
cipher_byte[j] = (byte)((k & 0x03) << 6);
Trang 82temp = (byte)(k & 0x30 >> 4);
cipher_byte[j] = (byte)(cipher_byte[j] | temp);
temp = (byte)(k & 0x3f >> 2);
cipher_byte[j] = (byte)(cipher_byte[j] | temp);
j++;
Trang 83cipher_byte[j] = (byte)(k & 0x03 << 6);
Trang 84m = ecl.ModOf(p, private_key.getM(), private_key.getN());
Trang 85byte[] binary = null;
binary = new byte[64];
byte i = 0;
Trang 86//if(number < 0 || x < 0 || mod < 0) return -1;
byte[] binary = Binary(x);
//if(binary == null) return -1;