I'm trying to load HAPI FHIR into IntelliJ, but am getting errors when doing so.
I have the latest version of IntelliJ installed, the community edition.
I opened the root "master" hapi-fhir directory in IntelliJ, and I'm getting a bunch of build errors when I try to build "hapi-fhir-jpaserver-example" or "hapi-fhir-jpaserver-base".
The first error I got was something along the lines of: "Cannot find symbol QuantityDt"
I discovered a post later that said I should first run "mvn install" on the root to generate a bunch of the classes that were dependencies.
After doing that, I continued to get the same error in IntelliJ. So, I modified the "Project Structure" to add in the hapi-fhir-structures-dstu2 project as a library.
Now, I am getting the following error(s):
C:\lcg-hapi-fhir\hapi-fhir-jpaserver-base\src\main\java\ca\uhn\fhir\jpa\provider\dstu3\JpaResourceProviderDstu3.java
Error:(33, 31) java: package org.hl7.fhir.convertors does not exist
Another error:
C:\lcg-hapi-fhir\hapi-fhir-jpaserver-base\src\main\java\ca\uhn\fhir\jpa\dao\FhirResourceDaoDstu2.java
Error:(7, 45) java: package org.hl7.fhir.instance.hapi.validation does not exist
Error:(53, 17) java: cannot find symbol
symbol: class IValidationSupport
location: class ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<T>
Can someone help explain what I'm missing... There seems to be a step I'm not aware of.
Kindly appreciate any help!