001package org.hl7.fhir.r5.utils.structuremap;
002
003import org.hl7.fhir.exceptions.FHIRException;
004import org.hl7.fhir.r5.model.Base;
005import org.hl7.fhir.r5.model.Coding;
006
007import java.util.List;
008
009public interface ITransformerServices {
010  //    public boolean validateByValueSet(Coding code, String valuesetId);
011  public void log(String message); // log internal progress
012
013  public Base createType(Object appInfo, String name) throws FHIRException;
014
015  public Base createResource(Object appInfo, Base res, boolean atRootofTransform); // an already created resource is provided; this is to identify/store it
016
017  public Coding translate(Object appInfo, Coding source, String conceptMapUrl) throws FHIRException;
018
019  //    public Coding translate(Coding code)
020  //    ValueSet validation operation
021  //    Translation operation
022  //    Lookup another tree of data
023  //    Create an instance tree
024  //    Return the correct string format to refer to a tree (input or output)
025  public Base resolveReference(Object appContext, String url) throws FHIRException;
026
027  public List<Base> performSearch(Object appContext, String url) throws FHIRException;
028}