Class EmedReference
java.lang.Object
org.projecthusky.fhir.emed.ch.epr.model.common.EmedReference
A reference to an eMedication document and/or entry.
- Author:
- Quentin Ligier
-
Constructor Summary
ConstructorsConstructorDescriptionEmedReference
(@Nullable UUID documentId, @Nullable UUID entryId) Constructs a new eMedication reference from IDs.EmedReference
(@Nullable UUID documentId, @Nullable UUID entryId, @Nullable EmedDocumentType documentType, @Nullable EmedEntryType entryType) Constructs a new eMedication reference from IDs and types. -
Method Summary
Modifier and TypeMethodDescription@Nullable UUID
@Nullable EmedDocumentType
@Nullable UUID
@Nullable EmedEntryType
boolean
Returns whether this instance references an entry (true
) or a document (false
).void
setDocumentId
(@Nullable UUID documentId) void
setDocumentType
(@Nullable EmedDocumentType documentType) void
setEntryId
(@Nullable UUID entryId) void
setEntryType
(@Nullable EmedEntryType entryType) toString()
toText()
-
Constructor Details
-
EmedReference
Constructs a new eMedication reference from IDs.- Parameters:
documentId
- The document ID ornull
if not specified.entryId
- The entry ID ornull
if not specified.- Throws:
IllegalArgumentException
- if both documentId and entryId are null.
-
EmedReference
public EmedReference(@Nullable UUID documentId, @Nullable UUID entryId, @Nullable EmedDocumentType documentType, @Nullable EmedEntryType entryType) Constructs a new eMedication reference from IDs and types.- Parameters:
documentId
- The document ID ornull
if not specified.entryId
- The entry ID ornull
if not specified.documentType
- The document type ornull
if not specified.entryType
- The entry type ornull
if not specified.- Throws:
IllegalArgumentException
- if both documentId and entryId are null.
-
-
Method Details