File tree 4 files changed +34
-35
lines changed
4 files changed +34
-35
lines changed Original file line number Diff line number Diff line change 1
1
object IPSManagerForm: TIPSManagerForm
2
2
Left = 350
3
3
Height = 567
4
- Top = 44
4
+ Top = 288
5
5
Width = 1197
6
6
Caption = 'Patient Summary Manager'
7
7
ClientHeight = 567
Original file line number Diff line number Diff line change @@ -228,29 +228,28 @@ function THGVSProvider.locate(code: String; altOpt : TAlternateCodeOptions; var
228
228
var
229
229
json, o : TJsonObject;
230
230
begin
231
- raise ETerminologyError.create(' HGVS is not supported at this time' );
232
- // try
233
- // json := TInternetFetcher.fetchJson('https://mutalyzer.nl/json/checkSyntax?variant='+code, 5000);
234
- // try
235
- // if json.bool['valid'] then
236
- // begin
237
- // result := THGVSCode.Create;
238
- // THGVSCode(result).code := code;
239
- // end
240
- // else
241
- // begin
242
- // result := nil;
243
- // message := '';
244
- // for o in json.forceArr['messages'].asObjects.forEnum do
245
- // CommaAdd(message, o.str['message']);
246
- // end;
247
- // finally
248
- // json.free;
249
- // end;
250
- // except
251
- // on e : Exception do
252
- // raise EFHIRException.Create('Error parsing HGVS response: '+e.message);
253
- // end;
231
+ result := nil ;
232
+ message := ' ' ;
233
+ try
234
+ json := TInternetFetcher.fetchJson(' https://clinicaltables.nlm.nih.gov/fhir/R4/CodeSystem/hgvs/$validate-code?code=' +code, 5000 );
235
+ try
236
+ for o in json.forceArr[' parameter' ].asObjects.forEnum do
237
+ begin
238
+ if (o.str[' name' ] = ' result' ) and (o.bool[' valueBoolean' ]) then
239
+ begin
240
+ result := THGVSCode.Create;
241
+ THGVSCode(result).code := code;
242
+ end
243
+ else if (o.str[' name' ] = ' message' ) then
244
+ CommaAdd(message, o.str[' message' ]);
245
+ end ;
246
+ finally
247
+ json.free;
248
+ end ;
249
+ except
250
+ on e : Exception do
251
+ raise EFHIRException.Create(' Error parsing HGVS response: ' +e.message);
252
+ end ;
254
253
end ;
255
254
256
255
function THGVSProvider.locateIsA (code, parent: String; disallowParent : boolean = false): TCodeSystemProviderContext;
Original file line number Diff line number Diff line change 1
1
object ToolkitAboutForm: TToolkitAboutForm
2
2
Left = 474
3
3
Height = 223
4
- Top = 228
4
+ Top = 472
5
5
Width = 530
6
6
BorderIcons = []
7
7
BorderStyle = bsNone
@@ -577,9 +577,9 @@ object ToolkitAboutForm: TToolkitAboutForm
577
577
object Label1: TLabel
578
578
Cursor = crHandPoint
579
579
Left = 216
580
- Height = 15
580
+ Height = 16
581
581
Top = 152
582
- Width = 263
582
+ Width = 295
583
583
Caption = 'https://github.com/HealthIntersections/fhirserver'
584
584
Font.Color = 10485760
585
585
Font.Style = [fsUnderline]
@@ -589,9 +589,9 @@ object ToolkitAboutForm: TToolkitAboutForm
589
589
object Label2: TLabel
590
590
Cursor = crHandPoint
591
591
Left = 216
592
- Height = 15
592
+ Height = 16
593
593
Top = 187
594
- Width = 77
594
+ Width = 94
595
595
Caption = 'License: BSD-3'
596
596
Font.Color = 10485760
597
597
Font.Style = [fsUnderline]
@@ -600,9 +600,9 @@ object ToolkitAboutForm: TToolkitAboutForm
600
600
end
601
601
object Label3: TLabel
602
602
Left = 216
603
- Height = 15
603
+ Height = 16
604
604
Top = 168
605
- Width = 218
605
+ Width = 252
606
606
Caption = 'Copyright (c) Health Intersections Pty Ltd'
607
607
end
608
608
end
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ object IgPubPageFrame: TIgPubPageFrame
7
7
ClientWidth = 1177
8
8
TabOrder = 0
9
9
DesignLeft = 339
10
- DesignTop = 290
10
+ DesignTop = 534
11
11
object Panel1: TPanel
12
12
Left = 0
13
13
Height = 318
@@ -179,7 +179,7 @@ object IgPubPageFrame: TIgPubPageFrame
179
179
end
180
180
object ToolButton2: TToolButton
181
181
Left = 211
182
- Height = 8
182
+ Height = 40
183
183
Top = 2
184
184
Caption = 'ToolButton2'
185
185
Style = tbsSeparator
@@ -193,7 +193,7 @@ object IgPubPageFrame: TIgPubPageFrame
193
193
end
194
194
object ToolButton4: TToolButton
195
195
Left = 319
196
- Height = 8
196
+ Height = 40
197
197
Top = 2
198
198
Caption = 'ToolButton4'
199
199
Style = tbsSeparator
@@ -223,7 +223,7 @@ object IgPubPageFrame: TIgPubPageFrame
223
223
end
224
224
object ToolButton8: TToolButton
225
225
Left = 504
226
- Height = 8
226
+ Height = 40
227
227
Top = 2
228
228
Caption = 'ToolButton8'
229
229
Style = tbsSeparator
You can’t perform that action at this time.
0 commit comments