Installing hapi/folowing the example

95 views
Skip to first unread message

Thomas

unread,
Mar 18, 2022, 4:03:36 AM3/18/22
to HAPI FHIR
Good morning

When trying this example 
https://hapifhir.github.io/hapi-hl7v2/xref/ca/uhn/hl7v2/examples/ExampleParseMessages.html

I get the following error:
j
ava: the unnamed module reads package ca.uhn.hl7v2.model.v22.datatype from both hapi.base and hapi.structures.v22

Does anyboday have an idea where my error is/or how to fix it

My imports look like this.

import ca.uhn.hl7v2.DefaultHapiContext;
import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.HapiContext;
import ca.uhn.hl7v2.model.Message;
import ca.uhn.hl7v2.model.v22.datatype.PN;
import ca.uhn.hl7v2.model.v22.message.ADT_A01;
import ca.uhn.hl7v2.model.v22.segment.MSH;
import ca.uhn.hl7v2.parser.EncodingNotSupportedException;
import ca.uhn.hl7v2.parser.Parser;

An my module-info.java  requires 
requires hapi.base;
requires hapi.structures.v22;

Regards
Thomas Dost
Reply all
Reply to author
Forward
0 new messages