subtitle:Instalation Guide of Gazelle Objects Checker
title:Installation & user manual
subtitle:Installation Guide of Gazelle Objects Checker
authors:Achraf Achkari
date:19/10/2021
---
# Instalation Guide of Gazelle Objects Checker
# Installation Guide of Gazelle Objects Checker
### Table of Content
1. ##### [Introduction](#introduction)
...
...
@@ -16,24 +16,27 @@ date: 19/10/2021
6. ##### [Generate Validator](#generateValidator)
7. ##### [Generation Validator form UML (Alternative)](#generateValidatorFromUML)
8. ##### [Validate CDA](#validateCDA)
9. ##### [Extras](#extra)
9. ##### [Utility Scripts](#utilityScripts)
10. ##### [Extras](#extras)
<divid='introduction'/>
## 1. Introduction
In this guide, we will show how to retrieve the new version of **Gazelle Objects Cheker**,
build it and generate a CDA Validator in a generic case, and client specific case
In this guide, we will show how to retrieve the new version of **Gazelle Objects Cheker**,
build it and generate a CDA Validator in a generic case, and client specific case
**Requirements:**
-**JDK 11** or higher
- maven **5.x.x** /!\ You need to respect this version, or the tool won't wokr
- git
- Maven **3.5.x** /!\ You need to respect this version, or the tool won't work
- Thanks to maven wrapper, this version is packaged now with GOC, you can find it in `gazelle-objects-checker/hl7templates/hl7templates-packager-jar/src/main/resources/maven-wrapper`
- Git
<divid='cloneProject'/>
## 2. Clone Project
## 2. Clone Project
the project is not maintained by the _forge_ anymore.<br>
Gazelle Objects Checker has been migred to **[Gitlab](https://gitlab.inria.fr)** and package under one module called **gazelle-objects-checker**<br>
If you worked already with the pervious versions of GOC, the following structure could be familiar to you:
Gazelle Objects Checker has been migrated to **[Gitlab](https://gitlab.inria.fr)** and packaged under one module called **gazelle-objects-checker**<br>
If you worked already with the previous versions of GOC, the following structure could be familiar to you:
- Archetypes
- generated-validator
- Hl7templates
...
...
@@ -52,8 +55,8 @@ If you worked already with the pervious versions of GOC, the following structure
- nblock-model
- voc-model
In the current version `3.0.0`, the `Archtypes` and `Hl7templates` modules _(with all their submodules)_ are packaged in one module `Gazelle Objects Checker`<br>
The resources models are packaged in a module called `UML Models`.
In the current version `3.x.x`, the `Archtypes` and `Hl7templates` modules _(with all their submodules)_ are packaged in one module `Gazelle Objects Checker`<br>
The resources models are packaged in a module called `UML Models`.
<table>
<thead>
...
...
@@ -81,9 +84,9 @@ Run the following command:
>cd gazelle-objects-checker
```
> Notice: the install of gazelle-objects-checker will be done in the [Generate Artifact](#generateArtifact) section.<br>
You can skip tests if you want, but it's not recommand to do.
>
> Notice: the installation of gazelle-objects-checker will be done in the [Generate Artifact](#generateArtifact) section.<br>
You can skip tests if you want, but it's not recommend.
>
> You don't have to install the `uml-models` module, it's already released
...
...
@@ -93,10 +96,10 @@ You can skip tests if you want, but it's not recommand to do.
## 3. Run Tests (Optional)
_/!\ You can skip this section, but it's recommanded to have all tests passed before continue_
_/!\ You can skip this section, but it's recommended to have all tests passed before continue_
GOC provide two types of tests, units tests and integration tests.<br>
The unit tests are _environement independents_.
GOC provides two types of tests, unit tests and integration tests.<br>
The unit tests are _environment independent_.
The integration tests create some temporary resources (UML Models) using the `uml-modes` (no need to have it installed locally, it has been packaged in [Nexus](https://gazelle.ihe.net/nexus/#nexus-search;quick~uml-models))
<br>
**Run Unit tests**
...
...
@@ -115,7 +118,7 @@ The integration tests create some temporary resources (UML Models) using the `um
If Something went wrong, make sure you have mentioned in maven logs:
- Resources created successfully
- Ressources deleted successfully
- Resources deleted successfully
If not, try to run the creation resources script `CreateResourcesForTest.java` in:
> Alert: even if GOC is in Standalone mode, it's need to have the Archetype installed locally at **Runtime**
>
> This could be improved in a future release
The Artifcat is generated at _**gazelle-objects-checker/hl7templates-packager-jar/target/hl7templates-packager-jar-X.X.X-SNAPSHOT-jar-with-dependencies.jar**_
The Artifact is generated at _**gazelle-objects-checker/hl7templates-packager-jar/target/hl7templates-packager-jar-X.X.X-SNAPSHOT-jar-with-dependencies.jar**_
> The X.X.X refers to the current SNAPSHOT version
>
> _**HINT**_: if you still have compile errors, you can install just the archetypes module (as it's required at runtime) with:
>
>
> ```bash
> cd gazelle-objects-checker/archetype/generated-validator
-**generated_report.log:** contains synthetic report about the generation process (`Warnings` and `Errors`)
-**detailed_report.log:** contains all the logging information from the generation process (`Infos`, `Warnings`, `Errors`)
-**cmdOutput.log:** contains the Stanrd Output of executed commands during generation (maven command to init project with archetype, generate code from OLC, packaging...)
-**cdeModelsErros.txt:** contains all detected inconsetencies between the provided BBR and pre-defined models used by GOC
-**cmdOutput.log:** contains the Standard Output of executed commands during generation (maven command to init project with archetype, generate code from OLC, packaging...)
-**cdeModelsErrors.txt:** contains all detected inconsistencies between the provided BBR and pre-defined models used by GOC