Skip to content

Commit

Permalink
Merge branch 'master' into linux-docker
Browse files Browse the repository at this point in the history
  • Loading branch information
costateixeira authored Oct 18, 2024
2 parents 47ccc58 + e76a81c commit b14a899
Show file tree
Hide file tree
Showing 71 changed files with 2,118 additions and 1,926 deletions.
58 changes: 35 additions & 23 deletions exec/pack/ucum.dat
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="ascii"?>
<root xmlns="http://unitsofmeasure.org/ucum-essence" version="2.0.1"
revision="$Revision: 439 $"
revision-date="$Date: 2015-11-13 15:13:19 -0500 (Fri, 13 Nov 2015) $">
<root xmlns="http://unitsofmeasure.org/ucum-essence" version="2.2" revision="N/A"
revision-date="2024-06-17">
<prefix Code="Y" CODE="YA">
<name>yotta</name>
<printSymbol>Y</printSymbol>
Expand Down Expand Up @@ -210,7 +209,7 @@
<name>mole</name>
<printSymbol>mol</printSymbol>
<property>amount of substance</property>
<value Unit="10*23" UNIT="10*23" value="6.0221367">6.0221367</value>
<value Unit="10*23" UNIT="10*23" value="6.02214076">6.02214076</value>
</unit>
<unit Code="sr" CODE="SR" isMetric="yes" class="si">
<name>steradian</name>
Expand Down Expand Up @@ -281,7 +280,7 @@
<unit Code="Wb" CODE="WB" isMetric="yes" class="si">
<name>weber</name>
<printSymbol>Wb</printSymbol>
<property>magentic flux</property>
<property>magnetic flux</property>
<value Unit="V.s" UNIT="V.S" value="1">1</value>
</unit>
<unit Code="Cel" CODE="CEL" isMetric="yes" isSpecial="yes" class="si">
Expand Down Expand Up @@ -337,7 +336,8 @@
<unit Code="gon" CODE="GON" isMetric="no" class="iso1000">
<name>gon</name>
<name>grade</name>
<printSymbol>&#9633;<sup>g</sup>
<printSymbol>
<sup>g</sup>
</printSymbol>
<property>plane angle</property>
<value Unit="deg" UNIT="DEG" value="0.9">0.9</value>
Expand Down Expand Up @@ -366,11 +366,11 @@
<property>volume</property>
<value Unit="dm3" UNIT="DM3" value="1">1</value>
</unit>
<unit Code="L" isMetric="yes" class="iso1000">
<unit Code="L" CODE="L" isMetric="yes" class="iso1000">
<name>liter</name>
<printSymbol>L</printSymbol>
<property>volume</property>
<value Unit="l" value="1">1</value>
<value Unit="l" UNIT="L" value="1">1</value>
</unit>
<unit Code="ar" CODE="AR" isMetric="yes" class="iso1000">
<name>are</name>
Expand Down Expand Up @@ -474,7 +474,7 @@
<name>unified atomic mass unit</name>
<printSymbol>u</printSymbol>
<property>mass</property>
<value Unit="g" UNIT="G" value="1.6605402e-24">1.6605402 &#215; 10<sup>-24</sup>
<value Unit="g" UNIT="G" value="1.66053906660e-24">1.66053906660 &#215; 10<sup>-24</sup>
</value>
</unit>
<unit Code="eV" CODE="EV" isMetric="yes" class="iso1000">
Expand Down Expand Up @@ -510,7 +510,7 @@
<i>h</i>
</printSymbol>
<property>action</property>
<value Unit="J.s" UNIT="J.S" value="6.6260755e-34">6.6260755 &#215; 10<sup>-34</sup>
<value Unit="J.s" UNIT="J.S" value="6.62607015e-34">6.62607015 &#215; 10<sup>-34</sup>
</value>
</unit>
<unit Code="[k]" CODE="[K]" isMetric="yes" class="const">
Expand All @@ -519,7 +519,7 @@
<i>k</i>
</printSymbol>
<property>(unclassified)</property>
<value Unit="J/K" UNIT="J/K" value="1.380658e-23">1.380658 &#215; 10<sup>-23</sup>
<value Unit="J/K" UNIT="J/K" value="1.380649e-23">1.380649 &#215; 10<sup>-23</sup>
</value>
</unit>
<unit Code="[eps_0]" CODE="[EPS_0]" isMetric="yes" class="const">
Expand Down Expand Up @@ -551,7 +551,7 @@
<i>e</i>
</printSymbol>
<property>electric charge</property>
<value Unit="C" UNIT="C" value="1.60217733e-19">1.60217733 &#215; 10<sup>-19</sup>
<value Unit="C" UNIT="C" value="1.602176634e-19">1.602176634 &#215; 10<sup>-19</sup>
</value>
</unit>
<unit Code="[m_e]" CODE="[M_E]" isMetric="yes" class="const">
Expand All @@ -563,7 +563,7 @@
</i>
</printSymbol>
<property>mass</property>
<value Unit="g" UNIT="g" value="9.1093897e-28">9.1093897 &#215; 10<sup>-28</sup>
<value Unit="kg" UNIT="kg" value="9.1093837139e-31">9.1093837139 &#215; 10<sup>-31</sup>
</value>
</unit>
<unit Code="[m_p]" CODE="[M_P]" isMetric="yes" class="const">
Expand All @@ -575,7 +575,7 @@
</i>
</printSymbol>
<property>mass</property>
<value Unit="g" UNIT="g" value="1.6726231e-24">1.6726231 &#215; 10<sup>-24</sup>
<value Unit="kg" UNIT="kg" value="1.67262192595e-27">1.67262192595 &#215; 10<sup>-27</sup>
</value>
</unit>
<unit Code="[G]" CODE="[GC]" isMetric="yes" class="const">
Expand All @@ -584,7 +584,7 @@
<i>G</i>
</printSymbol>
<property>(unclassified)</property>
<value Unit="m3.kg-1.s-2" UNIT="M3.KG-1.S-2" value="6.67259e-11">6.67259 &#215; 10<sup>-11</sup>
<value Unit="m3.kg-1.s-2" UNIT="M3.KG-1.S-2" value="6.67430e-11">6.67430 &#215; 10<sup>-11</sup>
</value>
</unit>
<unit Code="[g]" CODE="[G]" isMetric="yes" class="const">
Expand Down Expand Up @@ -1166,7 +1166,7 @@
<value Unit="[lb_av]" UNIT="[LB_AV]" value="100">100</value>
</unit>
<unit Code="[lcwt_av]" CODE="[LCWT_AV]" isMetric="no" class="avoirdupois">
<name>long hunderdweight</name>
<name>long hundredweight</name>
<name>British hundredweight</name>
<property>mass</property>
<value Unit="[lb_av]" UNIT="[LB_AV]" value="112">112</value>
Expand Down Expand Up @@ -1470,7 +1470,7 @@
<printSymbol>PD</printSymbol>
<property>refraction of a prism</property>
<value Unit="100tan(1 rad)" UNIT="100TAN(1 RAD)">
<function name="tanTimes100" value="1" Unit="deg"/>
<function name="tanTimes100" value="1" Unit="rad"/>
</value>
</unit>
<unit Code="%[slope]" CODE="%[SLOPE]" isMetric="no" isSpecial="yes" class="clinical">
Expand Down Expand Up @@ -1660,7 +1660,7 @@
<value Unit="[iU]" UNIT="[IU]" value="1">1</value>
</unit>
<unit Code="[arb'U]" CODE="[ARB'U]" isMetric="no" isArbitrary="yes" class="chemical">
<name>arbitary unit</name>
<name>arbitrary unit</name>
<printSymbol>arb. U</printSymbol>
<property>arbitrary</property>
<value Unit="1" UNIT="1" value="1">1</value>
Expand Down Expand Up @@ -1787,13 +1787,13 @@
<unit Code="[IR]" CODE="[IR]" isMetric="no" isArbitrary="yes" class="chemical">
<name>index of reactivity</name>
<printSymbol>IR</printSymbol>
<property>amount of an allergen callibrated through in-vivo testing using the Stallergenes&#174; method.</property>
<property>amount of an allergen calibrated through in-vivo testing using the Stallergenes&#174; method</property>
<value Unit="1" UNIT="1" value="1">1</value>
</unit>
<unit Code="[BAU]" CODE="[BAU]" isMetric="no" isArbitrary="yes" class="chemical">
<name>bioequivalent allergen unit</name>
<printSymbol>BAU</printSymbol>
<property>amount of an allergen callibrated through in-vivo testing based on the ID50EAL method of (intradermal dilution for 50mm sum of erythema diameters</property>
<property>amount of an allergen calibrated through in-vivo testing based on the ID50EAL method of (intradermal dilution for 50mm sum of erythema diameters</property>
<value Unit="1" UNIT="1" value="1">1</value>
</unit>
<unit Code="[AU]" CODE="[AU]" isMetric="no" isArbitrary="yes" class="chemical">
Expand All @@ -1806,7 +1806,7 @@
class="chemical">
<name>allergen unit for Ambrosia artemisiifolia</name>
<printSymbol>Amb a 1 U</printSymbol>
<property>procedure defined amount of the major allergen of ragweed.</property>
<property>procedure defined amount of the major allergen of ragweed</property>
<value Unit="1" UNIT="1" value="1">1</value>
</unit>
<unit Code="[PNU]" CODE="[PNU]" isMetric="no" isArbitrary="yes" class="chemical">
Expand Down Expand Up @@ -1949,7 +1949,7 @@
<value Unit="S" UNIT="S" value="1">1</value>
</unit>
<unit Code="[psi]" CODE="[PSI]" isMetric="no" class="misc">
<name>pound per sqare inch</name>
<name>pound per square inch</name>
<printSymbol>psi</printSymbol>
<property>pressure</property>
<value Unit="[lbf_av]/[in_i]2" UNIT="[LBF_AV]/[IN_I]2" value="1">1</value>
Expand All @@ -1961,7 +1961,7 @@
<value Unit="[pi].rad" UNIT="[PI].RAD" value="2">2</value>
</unit>
<unit Code="sph" CODE="SPH" isMetric="no" class="misc">
<name>spere</name>
<name>sphere</name>
<printSymbol>sph</printSymbol>
<property>solid angle</property>
<value Unit="[pi].sr" UNIT="[PI].SR" value="4">4</value>
Expand Down Expand Up @@ -1997,6 +1997,18 @@
<function name="sqrt" value="1" Unit="m2/s4/Hz"/>
</value>
</unit>
<unit Code="[NTU]" CODE="[NTU]" isMetric="no" class="misc">
<name>Nephelometric Turbidity Unit</name>
<printSymbol/>
<property>turbidity</property>
<value Unit="1" UNIT="1" value="1">1</value>
</unit>
<unit Code="[FNU]" CODE="[FNU]" isMetric="no" class="misc">
<name>Formazin Nephelometric Unit</name>
<printSymbol/>
<property>turbidity</property>
<value Unit="1" UNIT="1" value="1">1</value>
</unit>
<unit Code="bit_s" CODE="BIT_S" isMetric="no" isSpecial="yes" class="infotech">
<name>bit</name>
<printSymbol>bit<sub>s</sub>
Expand Down
8 changes: 4 additions & 4 deletions install/install-tk.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
; AppID can never be changed as subsequent installations require the same installation ID each time
AppID=FHIRToolkit
AppName=Health Intersections FHIR Toolkit
AppVerName=FHIRToolkit v3.4.18
AppVerName=FHIRToolkit v3.4.20

; compilation control
OutputDir=..\install\build
OutputBaseFilename=fhirtoolkit-win64-3.4.18
OutputBaseFilename=fhirtoolkit-win64-3.4.20
Compression=lzma2/ultra64

; 64 bit
Expand All @@ -32,11 +32,11 @@ UninstallFilesDir={app}\uninstall
; win2000+ add/remove programs support
AppPublisher=Health Intersections P/L
AppPublisherURL=http://www.healthintersections.com.au
AppVersion=3.4.18
AppVersion=3.4.20
AppSupportURL=https://github.com/grahamegrieve/fhirserver
AppUpdatesURL=https://github.com/grahamegrieve/fhirserver
AppCopyright=Copyright (c) Health Intersections Pty Ltd 2020+
VersionInfoVersion=3.4.18.0
VersionInfoVersion=3.4.20.0

; dialog support
LicenseFile=..\license
Expand Down
8 changes: 4 additions & 4 deletions install/install.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
; AppID can never be changed as subsequent installations require the same installation ID each time
AppID=FHIRServer
AppName=Health Intersections FHIR Server
AppVerName=FHIRServer v3.4.18
AppVerName=FHIRServer v3.4.20

; compilation control
OutputDir=..\install\build
OutputBaseFilename=fhirserver-win64-3.4.18
OutputBaseFilename=fhirserver-win64-3.4.20
Compression=lzma2/ultra64

; 64 bit
Expand All @@ -34,11 +34,11 @@ UninstallFilesDir={app}\uninstall
; win2000+ add/remove programs support
AppPublisher=Health Intersections P/L
AppPublisherURL=http://www.healthintersections.com.au
AppVersion=3.4.18
AppVersion=3.4.20
AppSupportURL=https://github.com/grahamegrieve/fhirserver
AppUpdatesURL=https://github.com/grahamegrieve/fhirserver
AppCopyright=Copyright (c) Health Intersections Pty Ltd 2011+
VersionInfoVersion=3.4.18.0
VersionInfoVersion=3.4.20.0

; dialog support
LicenseFile=..\license
Expand Down
4 changes: 4 additions & 0 deletions library/fhir/fhir_client_http.pas
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ TFHIRHTTPCommunicator = class (TFHIRClientCommunicator)
FTerminated : boolean;
FTimeout: cardinal;
FBytesToTransfer: Int64;
FApiKey : String;

indy : TIdHTTP;
ssl : TIdOpenSSLIOHandlerClient;
Expand Down Expand Up @@ -110,6 +111,7 @@ TFHIRHTTPCommunicator = class (TFHIRClientCommunicator)
property username : String read FUsername write FUsername;
property password : String read FPassword write FPassword;
property timeout : cardinal read FTimeout write SetTimeout;
property ApiKey : String read FApiKey write FApiKey;

function address : String; override;

Expand Down Expand Up @@ -350,6 +352,8 @@ procedure TFHIRHTTPCommunicator.createClient;
raise EFHIRException.Create('Unable to process proxy "'+proxy+'" - use address:port');
end;
end;
if FApiKey <> '' then
indy.Request.CustomHeaders.add('Api-Key: '+FApiKey);
ssl := TIdOpenSSLIOHandlerClient.Create(nil);
indy.IOHandler := ssl;
ssl.Options.TLSVersionMinimum := TIdOpenSSLVersion.TLSv1_2;
Expand Down
8 changes: 8 additions & 0 deletions library/fhir/fhir_common.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1003,9 +1003,12 @@ TFHIRValueSetCodeSystemW = class (TFHIRXVersionElementWrapper)
function concepts : TFhirCodeSystemConceptListW; virtual; abstract;
end;

{ TFhirValueSetW }

TFhirValueSetW = class (TFHIRMetadataResourceW)
public
function link : TFhirValueSetW; overload;
function clone : TFhirValueSetW; overload;
function source : String; virtual; abstract;

function checkCompose(place, role : String) : boolean; virtual; abstract;
Expand Down Expand Up @@ -2266,6 +2269,11 @@ function TFhirValueSetW.link: TFhirValueSetW;
result := TFhirValueSetW(inherited link);
end;

function TFhirValueSetW.clone: TFhirValueSetW;
begin
result := TFhirValueSetW(inherited clone);
end;

{ TFhirValueSetComposeIncludeFilterW }

function TFhirValueSetComposeIncludeFilterW.link: TFhirValueSetComposeIncludeFilterW;
Expand Down
Loading

0 comments on commit b14a899

Please sign in to comment.