Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamegrieve committed Mar 9, 2024
2 parents 36cef70 + ba3935a commit cbadb73
Show file tree
Hide file tree
Showing 43 changed files with 9,965 additions and 9,483 deletions.
1,860 changes: 930 additions & 930 deletions dependencies/zflate/zflate.pas

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions exec/pack/Messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,8 @@ XHTML_URL_INVALID_CHARS_one = URL contains Invalid Character ({1})
XHTML_URL_INVALID_CHARS_other = URL contains {0} Invalid Characters ({1})
TERMINOLOGY_TX_SYSTEM_HTTPS = The system URL ''{0}'' wrongly starts with https: not http:
CODESYSTEM_CS_NO_VS_NOTCOMPLETE = Review the All Codes Value Set - incomplete CodeSystems generally should not have an all codes value set specified
CODESYSTEM_CS_NO_VS_SUPPLEMENT1 = CodeSystems supplements should not have an all codes value set specified, and if they do, it must match the base code system
CODESYSTEM_CS_NO_VS_SUPPLEMENT2 = CodeSystems supplements should not have an all codes value set specified, and if they do, it must match the base code system, and this one does not (''{0}'')
TYPE_SPECIFIC_CHECKS_DT_IDENTIFIER_IETF_SYSTEM_VALUE = if identifier.system is ''urn:ietf:rfc:3986'', then the identifier.value must be a full URI (e.g. start with a scheme), not ''{0}''
TYPE_SPECIFIC_CHECKS_DT_ATT_SIZE_INVALID = Stated Attachment Size {0} is not valid
TYPE_SPECIFIC_CHECKS_DT_ATT_SIZE_CORRECT = Stated Attachment Size {0} does not match actual attachment size {1}
Expand Down Expand Up @@ -1056,7 +1058,6 @@ VALUESET_CIRCULAR_REFERENCE = Found a circularity pointing to {0} processing Val
VALUESET_SUPPLEMENT_MISSING_one = Required supplement not found: {1}
VALUESET_SUPPLEMENT_MISSING_other = Required supplements not found: {1}
CONCEPTMAP_VS_TOO_MANY_CODES = The concept map has too many codes to validate ({0})
CONCEPTMAP_VS_CONCEPT_CODE_UNKNOWN_SYSTEM = The code ''{1}'' comes from the system {0} which could not be found, so it''s not known whether it''s valid in the value set ''{2}''
CONCEPTMAP_VS_INVALID_CONCEPT_CODE = The code ''{1}'' in the system {0} is not valid in the value set ''{2}''
CONCEPTMAP_VS_INVALID_CONCEPT_CODE_VER = The code ''{2}'' in the system {0} version {1} is not valid in the value set ''{3}''
VALUESET_INC_TOO_MANY_CODES = The value set include has too many codes to validate ({0}), so each individual code has not been checked
Expand Down Expand Up @@ -1108,7 +1109,7 @@ Validation_VAL_Profile_Minimum_SLICE_other = Slice ''{3}'': minimum required = {
FHIRPATH_UNKNOWN_EXTENSION = Reference to an unknown extension - double check that the URL ''{0}'' is correct
Type_Specific_Checks_DT_XHTML_Resolve = Hyperlink ''{0}'' at ''{1}'' for ''{2}''' does not resolve
Type_Specific_Checks_DT_XHTML_Resolve_Img = Image source ''{0}'' at ''{1}'' does not resolve
TYPE_SPECIFIC_CHECKS_DT_XHTML_MULTIPLE_MATCHES = Hyperlink ''{0}'' at ''{1}'' for ''{2}''' resolves to multiple targets
TYPE_SPECIFIC_CHECKS_DT_XHTML_MULTIPLE_MATCHES = Hyperlink ''{0}'' at ''{1}'' for ''{2}'' resolves to multiple targets ({3})
CONTAINED_ORPHAN_DOM3 = The contained resource ''{0}'' is not referenced to from elsewhere in the containing resource nor does it refer to the containing resource (dom-3)
VALUESET_INCLUDE_CS_NOT_CS = The include system ''{0}'' is a reference to a contained resource, but the contained resource with that id is not a CodeSystem, it's a {1}
VALUESET_INCLUDE_CS_NOT_FOUND = No matching contained code system found for system ''{0}''
Expand All @@ -1117,3 +1118,16 @@ VALUESET_INCLUDE_CS_MULTI_FOUND = Multiple matching contained code systems found
VALUESET_INCLUDE_CSVER_MULTI_FOUND = Multiple matching contained code systems found for system ''{0}'' version ''{1}''
CODE_CASE_DIFFERENCE = The code ''{0}'' differs from the correct code ''{1}'' by case. Although the code system ''{2}'' is case insensitive, implementers are strongly encouraged to use the correct case anyway
SCT_NO_MRCM = Not validated against the Machine Readable Concept Model (MRCM)
ILLEGAL_PROPERTY = The property ''{0}'' is invalid
VALUESET_INCLUDE_SYSTEM_ABSOLUTE = URI values in ValueSet.compose.include.system must be absolute
VALUESET_INCLUDE_SYSTEM_ABSOLUTE_FRAG = URI values in ValueSet.compose.include.system must be absolute. To reference a contained code system, use the full CodeSystem URL and reference it using the http://hl7.org/fhir/StructureDefinition/valueset-system extension
CODESYSTEM_CS_SUPP_NO_SUPP = The code system is marked as a supplement, but it does not define what code system it supplements
VALUESET_INCLUDE_CS_CONTENT = The value set references CodeSystem ''{0}'' which has status ''{1}''
VALUESET_INCLUDE_CSVER_CONTENT = The value set references CodeSystem ''{0}'' version ''{2}'' which has status ''{1}''
VALUESET_INCLUDE_CS_SUPPLEMENT = The value set references CodeSystem ''{0}'' which is a supplement. It must reference the underlying CodeSystem ''{1}'' and use the http://hl7.org/fhir/StructureDefinition/valueset-supplement extension for the supplement
VALUESET_INCLUDE_CSVER_SUPPLEMENT = The value set references CodeSystem ''{0}'' version ''{2}'' which is a supplement. It must reference the underlying CodeSystem ''{1}'' and use the http://hl7.org/fhir/StructureDefinition/valueset-supplement extension for the supplement
CODESYSTEM_SUPP_NO_DISPLAY = This display (''{0}'') differs from that defined by the base code system (''{1}''). Both displays claim to be 'the "primary designation" for the same language (''{2}''), and the correct interpretation of this is undefined
CODESYSTEM_NOT_CONTAINED = CodeSystems are referred to directly from Coding.system, so it's generally best for them not to be contained resources
CODESYSTEM_THO_CHECK = Most code systems defined in HL7 IGs will need to move to THO later during the process. Consider giving this code system a THO URL now (See https://confluence.hl7.org/display/TSMG/Terminology+Play+Book)
TYPE_SPECIFIC_CHECKS_DT_CANONICAL_MULTIPLE_POSSIBLE_VERSIONS = There are multiple different potential matches for the url ''{0}''. It might be a good idea to fix to the correct version to reduce the likelihood of a wrong version being selected by an implementation/implementer. Using version ''{1}'', found versions: {2}
ABSTRACT_CODE_NOT_ALLOWED = Code ''{0}#{1}'' is abstract, and not allowed in this context
248 changes: 138 additions & 110 deletions ipsmanager/forms/frm_home.pas
Original file line number Diff line number Diff line change
@@ -1,110 +1,138 @@
unit frm_home;

{$i fhir.inc}

interface

uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, ComCtrls,
Menus, ActnList, laz.VirtualTrees,
mvBase, mvDataSources;

type

{ TIPSManagerForm }

TIPSManagerForm = class(TForm)
actionViewDataSources: TAction;
actionViewDocumentList: TAction;
ActionList1: TActionList;
ImageList1: TImageList;
imgMain: TImageList;
vtNavigator: TLazVirtualStringTree;
MainMenu1: TMainMenu;
mnuApple: TMenuItem;
MenuItem10: TMenuItem;
MenuItem11: TMenuItem;
MenuItem12: TMenuItem;
mnuItemSettings: TMenuItem;
MenuItem14: TMenuItem;
MenuItem2: TMenuItem;
MenuItem3: TMenuItem;
MenuItem4: TMenuItem;
MenuItem5: TMenuItem;
MenuItem6: TMenuItem;
mnuFileExit: TMenuItem;
MenuItem8: TMenuItem;
MenuItem9: TMenuItem;
Panel1: TPanel;
pnlPresentation: TPanel;
pnlNavigator: TPanel;
Splitter1: TSplitter;
StatusBar1: TStatusBar;
ToolBar1: TToolBar;
ToolButton2: TToolButton;
ToolButton3: TToolButton;
ToolButton4: TToolButton;
procedure actionViewDataSourcesExecute(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure MenuItem2Click(Sender: TObject);
procedure mnuFileExitClick(Sender: TObject);
private
FView : TViewManager;
procedure SetView(AValue: TViewManager);
public
property View : TViewManager read FView write SetView;
end;

var
IPSManagerForm: TIPSManagerForm;

implementation

{$R *.lfm}

{ TIPSManagerForm }

procedure TIPSManagerForm.MenuItem2Click(Sender: TObject);
begin

end;

procedure TIPSManagerForm.mnuFileExitClick(Sender: TObject);
begin
Close;
end;

procedure TIPSManagerForm.SetView(AValue: TViewManager);
begin
FView.Free;
FView := AValue;
FView.navigator := vtNavigator;
FView.NavPanel := pnlNavigator;
FView.presentation := pnlPresentation;
end;

procedure TIPSManagerForm.FormCreate(Sender: TObject);
begin
{$IFDEF OSX}
mnuApple.caption := #$EF#$A3#$BF;
mnuItemSettings.caption := 'Preferences...';
{$ELSE}
mnuApple.Visible := false;
{$ENDIF}
self.actionViewDataSources.OnExecute(self);
end;

procedure TIPSManagerForm.FormDestroy(Sender: TObject);
begin
FView.free;
end;

procedure TIPSManagerForm.actionViewDataSourcesExecute(Sender: TObject);
begin
//View := TDataSourceViewManager.create(FIniFile);
//View.Initialize;
end;

end.

unit frm_home;

{
Copyright (c) 2011+, HL7 and Health Intersections Pty Ltd (http://www.healthintersections.com.au)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
}

{$i fhir.inc}

interface

uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, ComCtrls,
Menus, ActnList, laz.VirtualTrees,
mvBase, mvDataSources;

type

{ TIPSManagerForm }

TIPSManagerForm = class(TForm)
actionViewDataSources: TAction;
actionViewDocumentList: TAction;
ActionList1: TActionList;
ImageList1: TImageList;
imgMain: TImageList;
vtNavigator: TLazVirtualStringTree;
MainMenu1: TMainMenu;
mnuApple: TMenuItem;
MenuItem10: TMenuItem;
MenuItem11: TMenuItem;
MenuItem12: TMenuItem;
mnuItemSettings: TMenuItem;
MenuItem14: TMenuItem;
MenuItem2: TMenuItem;
MenuItem3: TMenuItem;
MenuItem4: TMenuItem;
MenuItem5: TMenuItem;
MenuItem6: TMenuItem;
mnuFileExit: TMenuItem;
MenuItem8: TMenuItem;
MenuItem9: TMenuItem;
Panel1: TPanel;
pnlPresentation: TPanel;
pnlNavigator: TPanel;
Splitter1: TSplitter;
StatusBar1: TStatusBar;
ToolBar1: TToolBar;
ToolButton2: TToolButton;
ToolButton3: TToolButton;
ToolButton4: TToolButton;
procedure actionViewDataSourcesExecute(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure MenuItem2Click(Sender: TObject);
procedure mnuFileExitClick(Sender: TObject);
private
FView : TViewManager;
procedure SetView(AValue: TViewManager);
public
property View : TViewManager read FView write SetView;
end;

var
IPSManagerForm: TIPSManagerForm;

implementation

{$R *.lfm}

{ TIPSManagerForm }

procedure TIPSManagerForm.MenuItem2Click(Sender: TObject);
begin

end;

procedure TIPSManagerForm.mnuFileExitClick(Sender: TObject);
begin
Close;
end;

procedure TIPSManagerForm.SetView(AValue: TViewManager);
begin
FView.Free;
FView := AValue;
FView.navigator := vtNavigator;
FView.NavPanel := pnlNavigator;
FView.presentation := pnlPresentation;
end;

procedure TIPSManagerForm.FormCreate(Sender: TObject);
begin
{$IFDEF OSX}
mnuApple.caption := #$EF#$A3#$BF;
mnuItemSettings.caption := 'Preferences...';
{$ELSE}
mnuApple.Visible := false;
{$ENDIF}
self.actionViewDataSources.OnExecute(self);
end;

procedure TIPSManagerForm.FormDestroy(Sender: TObject);
begin
FView.free;
end;

procedure TIPSManagerForm.actionViewDataSourcesExecute(Sender: TObject);
begin
//View := TDataSourceViewManager.create(FIniFile);
//View.Initialize;
end;

end.

66 changes: 33 additions & 33 deletions ipsmanager/ipsmanager.lpr
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
program ipsmanager;

{$I fhir.inc}

uses
{$IFDEF WINDOWS}
FastMM4,
{$ELSE}
cmem,
cthreads,
{$ENDIF}

Interfaces, // this includes the LCL widgetset
Forms, datetimectrls,
{ you can add units after this }
fsl_base, fsl_threads, fsl_logging, fsl_utilities, fsl_collections, fsl_xml,
fsl_json, fui_lcl_managers, fhir_objects, fhir_xhtml, fsl_http, v2_dictionary,
fsl_ucum, fhir_client, fhir_oauth, fsl_web_init,
FrameViewer09,
frm_home, mvBase, mvDataSources;

{$R *.res}

begin
RequireDerivedFormResource := True;
Application.Title := 'Patient Summary Manager';
Application.Scaled := True;
Application.Initialize;

Application.CreateForm(TIPSManagerForm, IPSManagerForm);
Application.Run;
end.

program ipsmanager;

{$I fhir.inc}

uses
{$IFDEF WINDOWS}
FastMM4,
{$ELSE}
cmem,
cthreads,
{$ENDIF}

Interfaces, // this includes the LCL widgetset
Forms, datetimectrls,
{ you can add units after this }
fsl_base, fsl_threads, fsl_logging, fsl_utilities, fsl_collections, fsl_xml,
fsl_json, fui_lcl_managers, fhir_objects, fhir_xhtml, fsl_http, v2_dictionary,
fsl_ucum, fhir_client, fhir_oauth, fsl_web_init,
FrameViewer09,
frm_home, mvBase, mvDataSources;

{$R *.res}

begin
RequireDerivedFormResource := True;
Application.Title := 'Patient Summary Manager';
Application.Scaled := True;
Application.Initialize;

Application.CreateForm(TIPSManagerForm, IPSManagerForm);
Application.Run;
end.

Loading

0 comments on commit cbadb73

Please sign in to comment.