Ejemplo n.º 1
0
  public ResourceHistoryTable toHistory() {
    ResourceHistoryTable retVal = new ResourceHistoryTable();

    retVal.setResourceId(myId);
    retVal.setResourceType(myResourceType);
    retVal.setVersion(myVersion);

    retVal.setTitle(getTitle());
    retVal.setPublished(getPublished());
    retVal.setUpdated(getUpdated());
    retVal.setEncoding(getEncoding());
    retVal.setFhirVersion(getFhirVersion());
    retVal.setResource(getResource());
    retVal.setDeleted(getDeleted());
    retVal.setForcedId(getForcedId());

    for (ResourceTag next : getTags()) {
      retVal.addTag(next);
    }

    return retVal;
  }