Class DocumentMetadataCh
java.lang.Object
org.projecthusky.common.communication.DocumentMetadata
org.projecthusky.communication.ch.DocumentMetadataCh
-
Nested Class Summary
Nested classes/interfaces inherited from class org.projecthusky.common.communication.DocumentMetadata
DocumentMetadata.DocumentMetadataExtractionMode
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new document meta data.DocumentMetadataCh
(org.openehealth.ipf.commons.ihe.xds.core.metadata.DocumentEntry documentEntryType) Instantiates a new swiss (ch) specific document meta data object.Instantiates a new swiss (ch) specific document meta data object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the (optional) confidentialityCode code (e.g.Gets the classCodeGets the confidentialityCode listGets the formatCodeGets the healthcareFacilityTypeCodeGets the languageCodeMethod to get mimetypeMethod to get the practice settings codeGets the practice setting code.void
setClassCode
(ClassCode code) Sets the (required, but in principle computable) class code, which defines the class of the document (e.g.void
setCodedLanguage
(LanguageCode codedLanguage) Sets the (required) coded language (e.g.void
setFormatCode
(FormatCode code) Sets the (required) format code (e.g.void
Sets the (required) healthcare facility type code (e.g.void
setMimeType
(MimeType mimeType) Sets the (required) mime type (e.g.void
Sets the (required) original provider code.void
Sets the (required) practice setting code.void
setTypeCode
(TypeCode code) Sets the (required) type code.Methods inherited from class org.projecthusky.common.communication.DocumentMetadata
addAuthor, addAuthor, addConfidentialityCode, addConfidentialityCode, clear, clearExtracted, equals, equals, getAuthors, getAvailabilityStatus, getCda, getClassCode, getCodedLanguage, getComments, getConfidentialityCodes, getCreationTime, getDocSourceActorOrganizationId, getDocumentDescriptor, getDocumentEntry, getEntryUUID, getFormatCode, getHealthcareFacilityTypeCode, getMetadataLanguage, getMimeType, getPatient, getPatientId, getPracticeSettingCode, getSourcePatientId, getTitle, getTypeCode, getUniqueId, getUri, getXDoc, hashCode, setAvailabilityStatus, setClassCode, setCodedLanguage, setCreationTime, setDestinationPatientId, setDocSourceActorOrganizationId, setDocumentDescriptor, setEntryUUID, setFormatCode, setHealthcareFacilityTypeCode, setMetadata, setMetadataLanguage, setMimeType, setPatient, setPracticeSettingCode, setSourcePatientId, setTitle, setTypeCode, setUniqueId, setUri
-
Constructor Details
-
DocumentMetadataCh
public DocumentMetadataCh()Instantiates a new document meta data. -
DocumentMetadataCh
public DocumentMetadataCh(org.openehealth.ipf.commons.ihe.xds.core.metadata.DocumentEntry documentEntryType) Instantiates a new swiss (ch) specific document meta data object.- Parameters:
documentEntryType
- the document entry type
-
DocumentMetadataCh
Instantiates a new swiss (ch) specific document meta data object.- Parameters:
dm
- the DocumentMetadata object
-
-
Method Details
-
addConfidentialityCode
Adds the (optional) confidentialityCode code (e.g. '30001' for 'administrative data')- Parameters:
code
- the code
-
getClassCodeEnum
Gets the classCode- Returns:
- Code element with classCode as Enum
-
getConfidentialityCodesEnum
Gets the confidentialityCode list- Returns:
- the ArrayList with ConfidentialityCodes as Enums
-
getFormatCodeEnum
Gets the formatCode- Returns:
- formatCode as Enum
-
getHealthcareFacilityTypeCodeEnum
Gets the healthcareFacilityTypeCode- Returns:
- healthcareFacilityTypeCode as Enum
-
getLanguageCodeEnum
Gets the languageCode- Returns:
- codedLanguage as Enum
-
getMimeTypeCodeEnum
Method to get mimetype- Returns:
- the mimetype of the document
-
getPracticeSettingCodeEnum
Method to get the practice settings code- Returns:
- the pactice settings code
-
getTypeCodeEnum
Gets the practice setting code. This is the medical speciality of the practice where the document was produced- Returns:
- the practiceSettingCode as Enum
-
setClassCode
Sets the (required, but in principle computable) class code, which defines the class of the document (e.g. 'DCT01' for "Notes on Consultations")- Parameters:
code
- the new class code
-
setCodedLanguage
Sets the (required) coded language (e.g. "de-CH"). This code can be extracted from CDA Document automatically.- Parameters:
codedLanguage
- the new language code
-
setFormatCode
Sets the (required) format code (e.g. 'urn:epd:2015:EPD_Basic_Document' for an 'EDP Document')- Parameters:
code
- the new format code
-
setHealthcareFacilityTypeCode
Sets the (required) healthcare facility type code (e.g. '20001' for 'Institut für medizinische Diagnostik')- Parameters:
code
- the new healthcare facility type code
-
setMimeType
Sets the (required) mime type (e.g. "text/xml")- Parameters:
mimeType
- the new mime type
-
setPracticeSettingCode
Sets the (required) practice setting code. This is the medical speciality of the practice where the document was produced (e.g. '10001' for 'Allergologie')- Parameters:
code
- the new practice setting code
-
setTypeCode
Sets the (required) type code. Specifies the type of the document (like the class code, but more specific) (e.g. Code for 'Patienteneinwilligung')- Parameters:
code
- the new type code
-
setOriginalProviderRole
Sets the (required) original provider code. Specifies the role of the provider of the document.- Parameters:
code
- the new original provider role code
-