Evgeny Shvarov · Mar 9, 2024 go to post

Now answering your question :) 

Name="src" means the folder related to the one where module.xml is situated on the development/testing or publishing machine.

Evgeny Shvarov · Mar 9, 2024 go to post

In order to protect the IP you can use "Deployed packages" mode, see the documentation. Just include Deploy="true" in a resource element, and only compiled code will be installed. 

  <Resource Name="Sample.Demo.PKG" Deploy="true"/>

Load command locally still will import package with the source code, which is quite handy for development and testing.

Evgeny Shvarov · Mar 9, 2024 go to post

Hi @Stephen Canzano !

Unit tests are not included into the package when you publish it into repository. So when you install the package on a target machine only "solution" classes will be installed, not unit-tests.

E.g. here is csvgen app. I you check the source code it contains "solution" classes in src folder here and unit-tests in /tests folder.

module XML for csvgen has resources, that will be packaged while published in the IPM registry:

and the unittests, that are being used only development phase and can be imported to the system via load command:

So when you install csvgen package, e.g.:

USER>zpm "install csvgen" 

you'll see only RESOURCES classes installed.

Evgeny Shvarov · Feb 25, 2024 go to post

Also you can just do (in IRIS for Health):

USER>zpm "install fhir-server -dev"

And you'll have it setup in "FHIRSERVER" namespace with fhir server R4 at /fhir/r4

Evgeny Shvarov · Feb 22, 2024 go to post

Basically it's a way to store and retrieve arbitrary XML data resources within the ObjectScript class definition

Evgeny Shvarov · Feb 7, 2024 go to post

This is a fantastic discussion. Is there any service other than @Lorenzo Scalese's that can provide host IP and port for a docker iris? e.g. to be able to use it during development? 

Evgeny Shvarov · Feb 7, 2024 go to post

Nice! Thank you @Brett Saviano! 

And it works for host versions nicely! But of course if it is a docker image there could be a ports mapping. e.g. if I start iris with the following command:

docker run --rm --name iris-demo -d -p 9091:1972 -p 9092:52773   intersystemsdc/irishealth-community:preview

and open terminal with:

docker exec -it iris-demo iris session iris

then the command gives us:

USER>Do ##class(%Studio.General).GetWebServerPort(,,,.url) Write url,"csp/sys/UtilHome.csp" Kill url

http://172.17.0.2:52773/csp/sys/UtilHome.csp

and the working one is:

http://localhost:19092/csp/sys/UtilHome.csp

Maybe it is not possible at all for docker. 

Unless we setup a special global intentionally during the docker image build.

Evgeny Shvarov · Feb 5, 2024 go to post

Yes, I confirm that! Thank you!

BTW, the image in the top of the article is not visible:

Evgeny Shvarov · Feb 5, 2024 go to post

Yes. But docker-compose provides the mapping of PWS server (9092 in my case), so the web apps based on it should be reached out via 9092 in the host system. Even more - the FHIR SQL Builder setup application is running on 9092 port, but the settings should be on 52773. 

Evgeny Shvarov · Feb 4, 2024 go to post

This worked finally!

With the next step I'm trying to import file. the instruction in the repo doesn't tell where can I find it:

Evgeny Shvarov · Feb 4, 2024 go to post

52773 worked. Even I have 9092 port mapped for the host system. This was not very obvious. Thank you!