You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
3.8 KiB
HTML

<script>
$(document).ready(function(){
var layout = {on:{load:{'contact-x':['www/parser/contact.html']}}}
bootup.init('{{system.id}}',layout)
})
</script>
<div style="display:grid; grid-template-columns: auto 40%; gap:8px;">
<div>
<div class="large-text">
Containers: Podman or Docker
</div>
<p>
0. clone respository
<div class="source-code">
git clone https://healthcareio.the-phi.com/git/code/podman-parser.git
</div>
</p>
<p>
1. Edit env.sh file, use a text editor and the content of the file should look like the following
<br>provide values of choice
<div class="source-code">
<br>#
<br># Edit the env.sh file following variables, the others remain unchanged
<br>PG_USER=
<br>PG_PASSWORD=
<br>USER_EMAIL=
</div>
<br><b>Note :</b> The file updates with basic information to be used to configure the {x12} parser environment
<br><i class="fa-solid fa-minus"> </i> PG_USER, PG_PASSWORD set PostgreSQL username/password
<br><i class="fa-solid fa-minus"> </i> USER_EMAIL configures {x12} parser with user's email
</p>
<p>
2. Build the image with the files found in <b>podman-parser</b> folder
<div class="source-code">
docker build -t healthcareio:0.1 .
</div>
</p>
<p>
3. Build the container
<div class="source-code">
docker container create -v <i class="fa-solid fa-angle-left"></i>x12-folder-path<i class="fa-solid fa-angle-right"></i>:/data -p:<i class="fa-solid fa-angle-left"></i>port<i class="fa-solid fa-angle-right"></i>:5000 -h parser-ui --env-file ./env.sh --name parser healthcareio:0.1
</div>
</p>
<p>
4. Execute the parser (CLI), to parse the files
<div class="source-code">
healthcare-io parse /data
</div>
</p>
</div>
<div>
<div class="large-text">Prerequisites</div>
<p>
<ul class="border-left">
<li type="square">
Make sure to have either <b>docker</b> or <b>podman</b> installed
</li>
<li type="square">You should be familiar with containers
<div><i class="fa-solid fa-minus"></i> Bind port 5000 to an available port</div>
<div><i class="fa-solid fa-minus"></i> Mount a volume to <b>/data </b> that holds {x12} files</div>
</li>
</ul>
</p>
<div class="large-text">Things to know</div>
<p>
<ul class="border-left">
<li type="square">This is the best way to try the parser in a sandboxed environment</li>
<li type="square">The image is not yet available on a public registry, thus will require building</li>
<li type="square">Tools installed in the container:
<div><i class="fa-solid fa-minus"></i> PostgreSQL database</div>
<div><i class="fa-solid fa-minus"></i> PGWeb interface on port 5000</div>
</li>
<li type="square">The container has the latest copy of <b>{x12} parser</b> code-base</li>
<li type="square">There is not need to initialize the <b>{x12} parser</b>, this will happen automatically</li>
</ul>
</p>
<div class="large-text">&nbsp;</div>
<p>
<ul class="border-left">
<div id="contact-x" class="contact"></div>
</ul>
</p>
</div>
</div>