Need FHIR2 encounter create and update calls

It’s not a matter of changing the dependency version. The thing to do would be to just make your module depend on the FHIR2 module, then you get those dependencies for free.

So in your POM.xml, you want something like this:

<!-- elsewhere -->
<properties>
	<fhir2Version>1.2.1</fhir2Version>
</properties>

<!--  with your other dependencies -->
<dependency>
	<groupId>org.openmrs.module</groupId>
	<artifactId>fhir2-api</artifactId>
	<version>${fhir2Version}</version>
	<scope>provided</scope>
</dependency>

And then in omod/src/main/resources/config.xml you need a line that looks like this:

<require_modules>
	<require_module version="${fhir2Version}">org.openmrs.module.fhir2</require_module>
</require_modules>