Class MinimalDocumentReference

All Implemented Interfaces:
IElement, Serializable, IAnyResource, IBase, IBaseHasExtensions, IBaseHasModifierExtensions, IBaseResource, IDomainResource

public class MinimalDocumentReference extends DocumentReference
See Also:
  • Constructor Details

    • MinimalDocumentReference

      public MinimalDocumentReference()
  • Method Details

    • copy

      public MinimalDocumentReference copy()
      Overrides:
      copy in class DocumentReference
    • getHomeCommunityId

      public OidType getHomeCommunityId()
      Returns the community this DocumentReference resides in, as introduced by MHD 4.2.4 with the Target Communities Option (CP-ITI-1326-02).
      Returns:
      the homeCommunityId, never null
    • hasHomeCommunityId

      public boolean hasHomeCommunityId()
    • setHomeCommunityId

      public MinimalDocumentReference setHomeCommunityId(OidType homeCommunityId)
    • setHomeCommunityId

      public MinimalDocumentReference setHomeCommunityId(Oid oid)
      Sets the community this DocumentReference resides in. The OID is rendered as a URN, as the oid data type requires.
      Parameters:
      oid - homeCommunityId
      Returns:
      this object
    • setUniqueIdIdentifier

      public MinimalDocumentReference setUniqueIdIdentifier(String system, String value)
      Sets the Unique Id of the referenced document. It is written to the MasterIdentifier and, since MHD 4.2.4 also allows for it, to the Unique Id slice of DocumentReference.identifier, where the profile requires it to carry the very same value. Both are restricted to one occurrence, so an already present Unique Id is replaced.
      Parameters:
      system - system value
      value - identifier value
      Returns:
      this object
    • setEntryUuidIdentifier

      public MinimalDocumentReference setEntryUuidIdentifier(UUID uuid)
      Adds an identifier to be a EntryUuid as required by the profile. Since MHD 4.2.4 this slice is restricted to one occurrence, so an already present EntryUuid identifier is replaced.
      Parameters:
      uuid - UUID
      Returns:
      this object
    • getEntryUuidIdentifier

      public Optional<Identifier> getEntryUuidIdentifier()
      Returns the EntryUuid identifier, recognized either by its type coding (MHD 4.2.4) or by its use (MHD 4.2.3 and earlier).
      Returns:
      the EntryUuid identifier, if present
    • getUniqueIdIdentifier

      public Optional<Identifier> getUniqueIdIdentifier()
      Returns the Unique Id identifier, recognized either by its type coding (MHD 4.2.4) or by its use (MHD 4.2.3 and earlier). Looks at DocumentReference.identifier first and falls back to the MasterIdentifier, which is where MHD primarily carries it.
      Returns:
      the Unique Id identifier, if present
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface IBase
      Overrides:
      isEmpty in class DocumentReference
    • copyValues

      public void copyValues(DocumentReference dst)
      Overrides:
      copyValues in class DocumentReference
    • equalsDeep

      public boolean equalsDeep(Base other_)
      Overrides:
      equalsDeep in class DocumentReference