add helper method to CanonicalSubscription (#1226)

This commit is contained in:
Ken Stevens 2019-03-08 09:51:42 -05:00 committed by James Agnew
parent 5dccf93506
commit 94021989b0
1 changed files with 5 additions and 1 deletions

View File

@ -29,10 +29,10 @@ import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hl7.fhir.instance.model.api.IIdType;
import org.hl7.fhir.instance.model.api.IPrimitiveType;
import org.hl7.fhir.r4.model.IdType;
import org.hl7.fhir.r4.model.Subscription;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.io.Serializable;
import java.util.*;
@ -173,6 +173,10 @@ public class CanonicalSubscription implements Serializable, Cloneable {
return retVal;
}
public String getIdPart() {
return new IdType(getIdElementString()).getIdPart();
}
public String getIdElementString() {
return myIdElement;
}