Class SubmissionSetMetadata
java.lang.Object
org.projecthusky.common.communication.SubmissionSetMetadata
- Direct Known Subclasses:
SubmissionSetMetadataAt
Represents the metadata for a submission set (which can hold one or more
documents)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The Class MetadataExtractionMode -
Constructor Summary
ConstructorsConstructorDescriptionStandard Constructor.SubmissionSetMetadata
(org.openehealth.ipf.commons.ihe.xds.core.metadata.SubmissionSet submissionSet) Constructor with IPF SubmissionSet object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add an author object to the SubmissionSetMetadata object.Gets the Author of this SubmissionList<org.openehealth.ipf.commons.ihe.xds.core.metadata.Author>
Gets the mdht author type .org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus
Gets the Availability Status of the DocumentGets comments for this submissionGets the contentTypeCode, which defines the type of the submission set contentGets the EntryUUIDorg.openehealth.ipf.commons.ihe.xds.core.metadata.SubmissionSet
Gets the IPF SubmissionSet Object, which is wrapped by this class.Gets the ID of the patientGets the ID of the sending facility (e.g.getTitle()
Gets the title of the submission setGets the uniqueid of the submission setvoid
Deprecated.void
setAvailabilityStatus
(org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus status) Sets the Availability Status of the Documentvoid
setComments
(String comments) Sets comments for this submissionvoid
setContentTypeCode
(Code code) Sets the contentTypeCode, which defines the type of the submission set contentvoid
Sets the ID for the patient in the destinationvoid
setEntryUUID
(String entryUuid) Sets the entry uuid.void
setSourceId
(String id) Sets the ID of the sending facility (e.g.void
Sets the title of the submission setvoid
setUniqueId
(String uniqueyId) Sets the unique id.org.openehealth.ipf.commons.ihe.xds.core.metadata.SubmissionSet
toOhtSubmissionSetType
(org.openehealth.ipf.commons.ihe.xds.core.metadata.SubmissionSet ohtSubmissionSetType) Fills a given IPF SubmissionSetType object with the data of this submission set class
-
Constructor Details
-
SubmissionSetMetadata
public SubmissionSetMetadata()Standard Constructor. -
SubmissionSetMetadata
public SubmissionSetMetadata(org.openehealth.ipf.commons.ihe.xds.core.metadata.SubmissionSet submissionSet) Constructor with IPF SubmissionSet object.- Parameters:
submissionSet
- the IPF submission set object
-
-
Method Details
-
getAuthor
Gets the Author of this Submission- Returns:
- the Author as Convenience API Object
-
getAuthorTypeMdht
Gets the mdht author type .- Returns:
- the mdht author type.
-
getAvailabilityStatus
public org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus getAvailabilityStatus()Gets the Availability Status of the Document- Returns:
- status the AvailabilityStatus
-
getComments
Gets comments for this submission- Returns:
- comments the comments
-
getContentTypeCode
Gets the contentTypeCode, which defines the type of the submission set content- Returns:
- code the contentTypeCode
-
getEntryUUID
Gets the EntryUUID- Returns:
- the EntryUUID
-
getIpfSubmissionSet
public org.openehealth.ipf.commons.ihe.xds.core.metadata.SubmissionSet getIpfSubmissionSet()Gets the IPF SubmissionSet Object, which is wrapped by this class.- Returns:
- the IPF SubmissionSet Object
-
getPatientId
Gets the ID of the patient- Returns:
- id the patientId
-
getSourceId
Gets the ID of the sending facility (e.g. a hospital id)- Returns:
- id the SourceId
-
getTitle
Gets the title of the submission set- Returns:
- the title
-
getUniqueId
Gets the uniqueid of the submission set- Returns:
- hte unique id
-
setAuthor
Deprecated.Sets the Author of this submission. This method is deprecated, since the author role is not encoded as II serialization and only sets the name of the role. E.g. "Heathcare professional" instead of "HCP^^^&2.16.756.5.30.1.127.3.10.6&ISO", which is required for the Swiss EPR.- Parameters:
author
- the Author
-
addAuthor
add an author object to the SubmissionSetMetadata object. In constrast to the method above, it uses the same metadata extractor used in the DocumentMetadata- Parameters:
author
-
-
setAvailabilityStatus
public void setAvailabilityStatus(org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus status) Sets the Availability Status of the Document- Parameters:
status
- the AvailabilityStatus
-
setComments
Sets comments for this submission- Parameters:
comments
- the comments
-
setContentTypeCode
Sets the contentTypeCode, which defines the type of the submission set content- Parameters:
code
- the contentTypeCode
-
setDestinationPatientId
Sets the ID for the patient in the destination- Parameters:
id
- the patientId
-
setEntryUUID
Sets the entry uuid.- Parameters:
entryUuid
- the uuid to be set
-
setSourceId
Sets the ID of the sending facility (e.g. a hospital id)- Parameters:
id
- the SourceId
-
setTitle
Sets the title of the submission set- Parameters:
title
- the title
-
setUniqueId
Sets the unique id.- Parameters:
uniqueyId
- the unique id to be set
-
toOhtSubmissionSetType
public org.openehealth.ipf.commons.ihe.xds.core.metadata.SubmissionSet toOhtSubmissionSetType(org.openehealth.ipf.commons.ihe.xds.core.metadata.SubmissionSet ohtSubmissionSetType) Fills a given IPF SubmissionSetType object with the data of this submission set class- Parameters:
ohtSubmissionSetType
- the SubmissionSetType- Returns:
- the filled ohtSubmissionSetType
-