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 EmedEntryTypebooleanReturns whether this instance references an entry (true) or a document (false).voidsetDocumentId(@Nullable UUID documentId) voidsetDocumentType(@Nullable EmedDocumentType documentType) voidsetEntryId(@Nullable UUID entryId) voidsetEntryType(@Nullable EmedEntryType entryType) toString()toText()
-
Constructor Details
-
EmedReference
Constructs a new eMedication reference from IDs.- Parameters:
documentId- The document ID ornullif not specified.entryId- The entry ID ornullif 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 ornullif not specified.entryId- The entry ID ornullif not specified.documentType- The document type ornullif not specified.entryType- The entry type ornullif not specified.- Throws:
IllegalArgumentException- if both documentId and entryId are null.
-
-
Method Details