Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To add another object to FHIR synchronization, you must implement the FHIR Strategy Pattern

To do this, Firstly you need to create GenericObjectnameStrategy interface if you wish to synchronize Objectname object

...

After that, the interface, by default needs to be implemented by ObjectnameStrategy class that would contain concrete implementatons of method stubsmethods.

A Strategy Util class, like ObjectNameStrategyUtil  should be created next to retrieve the implemented strategy in the following way:

...

and implemented accordingly.
Also, in the FHIRClientHelper class, CATEGORY_OBJECT_NAME needs to be added to the CATEGORY_MAP:


CATEGORY_MAP.put(CATEGORY_DRUG_ORDER, MedicationRequest.class);

and handled in the compareResourceObjects:

...