Skip to content

Commit aa7c1f8

Browse files
author
Grahame Grieve
committed
Add support for Chilean Snomed
1 parent cc3ef07 commit aa7c1f8

4 files changed

Lines changed: 27 additions & 24 deletions

File tree

library/ftx/fhir_valuesets.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,7 @@ function TValueSetChecker.check(issuePath : String; coding: TFhirCodingW; abstra
14411441
result.addParamStr('status', vstatus);
14421442
msg := FI18n.translate('INACTIVE_CONCEPT_FOUND', FParams.HTTPLanguages, [vstatus, coding.code]);
14431443
messages.add(msg);
1444-
op.addIssue(isWarning, itInvalid, path, 'INACTIVE_CONCEPT_FOUND', msg, oicCodeComment);
1444+
op.addIssue(isWarning, itBusinessRule, path, 'INACTIVE_CONCEPT_FOUND', msg, oicCodeComment);
14451445
end;
14461446
end
14471447
else if (ok = bUnknown) then
@@ -2015,7 +2015,7 @@ function TValueSetChecker.check(issuePath : String; code: TFhirCodeableConceptW;
20152015
result.addParamStr('status', vstatus);
20162016
m := FI18n.translate('INACTIVE_CONCEPT_FOUND', FParams.HTTPLanguages, [vstatus, tcode]);
20172017
msg(m);
2018-
op.addIssue(isWarning, itInvalid, path, 'INACTIVE_CONCEPT_FOUND', m, oicCodeComment);
2018+
op.addIssue(isWarning, itBusinessRule, path, 'INACTIVE_CONCEPT_FOUND', m, oicCodeComment);
20192019
end;
20202020
if mt.count > 0 then
20212021
begin
@@ -2093,7 +2093,7 @@ function TValueSetChecker.check(issuePath, system, version, code: String; inferS
20932093
result.addParamStr('status', vstatus);
20942094
msg := FI18n.translate('INACTIVE_CONCEPT_FOUND', FParams.HTTPLanguages, [vstatus, code]);
20952095
messages.add(msg);
2096-
op.addIssue(isWarning, itInvalid, 'code', 'INACTIVE_CONCEPT_FOUND', msg, oicCodeComment);
2096+
op.addIssue(isWarning, itBusinessRule, 'code', 'INACTIVE_CONCEPT_FOUND', msg, oicCodeComment);
20972097
end;
20982098
end
20992099
else if (ok = bUnknown) then

library/ftx/ftx_sct_services.pas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,6 +2130,7 @@ function TSnomedServices.GetEditionName: String;
21302130
else if FEditionId = '83821000000107' then result := 'UK Edition'
21312131
else if FEditionId = '999000021000000109' then result := 'UK Clinical Edition'
21322132
else if FEditionId = '5631000179106' then result := 'Uruguay Edition'
2133+
else if FEditionId = '21000325107' then result := 'Chilean Edition'
21332134
else if FEditionId = '731000124108' then result := 'US Edition'
21342135
else if FEditionId = '5991000124107' then result := 'US Edition (with ICD-10-CM maps)'
21352136
else if FEditionId = inttostr(COMBINED_MODULE_ID) then

server/console_form.lfm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3170,6 +3170,7 @@ object MainConsoleForm: TMainConsoleForm
31703170
'Belgian'
31713171
'Canadian English'
31723172
'Canadian French'
3173+
'Chile',
31733174
'Czech'
31743175
'Danish'
31753176
'Estonian'

server/console_form.pas

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3205,27 +3205,28 @@ function TMainConsoleForm.getSnomedModule: String;
32053205
5: { Belgian } result := '11000172109';
32063206
6: { Canadian English } result := '20621000087109';
32073207
7: { Canadian Canadian French } result := '20611000087101';
3208-
8: { Czech } result := '11000279109';
3209-
9: { Danish } result := '554471000005108';
3210-
10: { Estonian } result := '11000181102';
3211-
11: { Finnish } result := '11000229106';
3212-
12: { German } result := '11000274103';
3213-
13: { Indian } result := '1121000189102';
3214-
14: { Irish } result := '11000220105';
3215-
15: { Netherlands } result := '11000146104';
3216-
16: { New Zealand } result := '21000210109';
3217-
17: { Norwegian } result := '51000202101';
3218-
18: { Republic of Korea (South Korea) } result := '11000267109';
3219-
19: { Spanish National } result := '900000001000122104';
3220-
20: { Swedish } result := '45991000052106';
3221-
21: { Swiss } result := '2011000195101';
3222-
22: { UK } result := '83821000000107';
3223-
23: { UK Clinical } result := '999000021000000109';
3224-
24: { Uruguay } result := '5631000179106';
3225-
25: { US } result := '731000124108';
3226-
26: { US (with ICD-10-CM maps) } result := '5991000124107';
3227-
27: { IPS Terminology } result := '827022005';
3228-
28: { Combined } result := inttostr(COMBINED_MODULE_ID);
3208+
8: { Chilean } result := '21000325107';
3209+
9: { Czech } result := '11000279109';
3210+
10: { Danish } result := '554471000005108';
3211+
11: { Estonian } result := '11000181102';
3212+
12: { Finnish } result := '11000229106';
3213+
13: { German } result := '11000274103';
3214+
14: { Indian } result := '1121000189102';
3215+
15: { Irish } result := '11000220105';
3216+
16: { Netherlands } result := '11000146104';
3217+
17: { New Zealand } result := '21000210109';
3218+
18: { Norwegian } result := '51000202101';
3219+
19: { Republic of Korea (South Korea) } result := '11000267109';
3220+
20: { Spanish National } result := '900000001000122104';
3221+
21: { Swedish } result := '45991000052106';
3222+
22: { Swiss } result := '2011000195101';
3223+
23: { UK } result := '83821000000107';
3224+
24: { UK Clinical } result := '999000021000000109';
3225+
25: { Uruguay } result := '5631000179106';
3226+
26: { US } result := '731000124108';
3227+
27: { US (with ICD-10-CM maps) } result := '5991000124107';
3228+
28: { IPS Terminology } result := '827022005';
3229+
29: { Combined } result := inttostr(COMBINED_MODULE_ID);
32293230
end;
32303231
end;
32313232

0 commit comments

Comments
 (0)