Skip to content

Commit

Permalink
incompatibility fix to support FHIR in IRIS 2023.2
Browse files Browse the repository at this point in the history
  • Loading branch information
evshvarov committed Sep 11, 2023
1 parent 27c20e3 commit 9fb9c75
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
5 changes: 3 additions & 2 deletions dev.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# useful commands
## clean up docker
## clean up docker
```
docker system prune -f
```
Expand All @@ -21,7 +21,8 @@ docker-compose exec iris iris session iris -U FHIRServer

## FHIR Namespace setup

do ##class(HS.HC.Util.Installer).InstallFoundation("FHIRServer")
Do ##class(HS.Util.Installer.Foundation).Install(namespace)


## fhir server configuration setup
```
Expand Down
10 changes: 6 additions & 4 deletions iris.script
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@
zpm "load /home/irisowner/irisdev/ -v":1:1
zpm "install fhir-portal"
halt
/// the below is not important anymore.
/// the below is not important anymore.

zn "HSLIB"
set namespace="FHIRSERVER"

Set appKey = "/fhir/r4"
Set strategyClass = "HS.FHIRServer.Storage.Json.InteractionsStrategy"
set metadataPackages = $lb("[email protected]")
set importdir="/opt/irisapp/src"

//Install a Foundation namespace and change to it
Do ##class(HS.HC.Util.Installer).InstallFoundation(namespace)
//Do ##class(HS.HC.Util.Installer).InstallFoundation(namespace)
Do ##class(HS.Util.Installer.Foundation).Install(namespace)

zn namespace

// Install elements that are required for a FHIR-enabled namespace
Expand Down
2 changes: 1 addition & 1 deletion module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Document name="fhir-server.ZPM">
<Module>
<Name>fhir-server</Name>
<Version>1.2.1</Version>
<Version>1.3.1</Version>
<Description>InterSystems FHIR Server with a demo frontend</Description>
<Keywords>FHIR,Server</Keywords>
<Packaging>module</Packaging>
Expand Down
12 changes: 7 additions & 5 deletions src/fhirtemplate/Setup.cls
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ ClassMethod SetupFHIRServer(ns) As %Status
;set importdir="/opt/irisapp/src"

//Install a Foundation namespace and change to it
Do ##class(HS.HC.Util.Installer).InstallFoundation(namespace)
//Do ##class(HS.HC.Util.Installer).InstallFoundation(namespace)
Do ##class(HS.Util.Installer.Foundation).Install(namespace)

zn namespace

// Install elements that are required for a FHIR-enabled namespace
Expand Down Expand Up @@ -46,11 +48,11 @@ ClassMethod AddApp(ns={$namespace}) As %Status
{
set namespace=ns
zn "%SYS"
set webName = "/fhirUI"
set webProperties("NameSpace") = namespace
set webProperties("Enabled") = 1
set webName = "/fhirUI"
set webProperties("NameSpace") = namespace
set webProperties("Enabled") = 1
set webProperties("Path") = "/irisdev/app/fhirUI"
set webProperties("AutheEnabled") = 64
set webProperties("AutheEnabled") = 64
set webProperties("ServeFiles")=2
set webProperties("Recurse")=1
quit ##class(Security.Applications).Create(webName, .webProperties)
Expand Down

0 comments on commit 9fb9c75

Please sign in to comment.