[507] | 1 | <?xml version="1.0"?>
|
---|
| 2 | <!DOCTYPE hibernate-mapping PUBLIC
|
---|
| 3 | "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
---|
| 4 | "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
---|
| 5 | <hibernate-mapping package="gov.hhs.fha.nhinc.repository.model">
|
---|
| 6 | <class name="Document" table="document">
|
---|
| 7 | <id name="documentid" column="documentid" type="long">
|
---|
| 8 | <generator class="increment" />
|
---|
| 9 | </id>
|
---|
| 10 | <property name="documentUniqueId" column="DocumentUniqueId" type="string" length="64" not-null="true" />
|
---|
| 11 | <property name="documentTitle" column="DocumentTitle" type="string" length="128" not-null="false" />
|
---|
| 12 | <property name="authorPerson" column="authorPerson" type="string" length="64" not-null="false" />
|
---|
| 13 | <property name="authorInstitution" column="authorInstitution" type="string" length="64" not-null="false" />
|
---|
| 14 | <property name="authorRole" column="authorRole" type="string" length="64" not-null="false" />
|
---|
| 15 | <property name="authorSpecialty" column="authorSpecialty" type="string" length="64" not-null="false" />
|
---|
| 16 | <property name="availablityStatus" column="AvailabilityStatus" type="string" length="64" not-null="false" />
|
---|
| 17 | <property name="classCode" column="ClassCode" type="string" length="64" not-null="false" />
|
---|
| 18 | <property name="classCodeScheme" column="ClassCodeScheme" type="string" length="64" not-null="false" />
|
---|
| 19 | <property name="classCodeDisplayName" column="ClassCodeDisplayName" type="string" length="64" not-null="false" />
|
---|
| 20 | <property name="confidentialityCode" column="ConfidentialityCode" type="string" length="64" not-null="false" />
|
---|
| 21 | <property name="confidentialityCodeScheme" column="ConfidentialityCodeScheme" type="string" length="64" not-null="false" />
|
---|
| 22 | <property name="confidentialityCodeDisplayName" column="ConfidentialityCodeDisplayName" type="string" length="64" not-null="false" />
|
---|
| 23 | <property name="creationTime" column="CreationTime" type="timestamp" length="64" not-null="false" />
|
---|
| 24 | <property name="formatCode" column="FormatCode" type="string" length="64" not-null="false" />
|
---|
| 25 | <property name="formatCodeScheme" column="FormatCodeScheme" type="string" length="64" not-null="false" />
|
---|
| 26 | <property name="formatCodeDisplayName" column="FormatCodeDisplayName" type="string" length="64" not-null="false" />
|
---|
| 27 | <property name="patientId" column="PatientId" type="string" length="64" not-null="false" />
|
---|
| 28 | <property name="serviceStartTime" column="ServiceStartTime" type="timestamp" not-null="false" />
|
---|
| 29 | <property name="serviceStopTime" column="ServiceStopTime" type="timestamp" not-null="false" />
|
---|
| 30 | <property name="status" column="Status" type="string" length="64" not-null="false" />
|
---|
| 31 | <property name="comments" column="Comments" type="string" length="256" not-null="false" />
|
---|
| 32 | <property name="hash" column="Hash" type="string" length="1028" not-null="false" />
|
---|
| 33 | <property name="facilityCode" column="FacilityCode" type="string" length="64" not-null="false" />
|
---|
| 34 | <property name="facilityCodeScheme" column="FacilityCodeScheme" type="string" length="64" not-null="false" />
|
---|
| 35 | <property name="facilityCodeDisplayName" column="FacilityCodeDisplayName" type="string" length="64" not-null="false" />
|
---|
| 36 | <property name="intendedRecipientPerson" column="IntendedRecipientPerson" type="string" length="128" not-null="false" />
|
---|
| 37 | <property name="intendedRecipientOrganization" column="IntendedRecipientOrganization" type="string" length="128" not-null="false" />
|
---|
| 38 | <property name="languageCode" column="LanguageCode" type="string" length="64" not-null="false" />
|
---|
| 39 | <property name="legalAuthenticator" column="LegalAuthenticator" type="string" length="64" not-null="false" />
|
---|
| 40 | <property name="mimeType" column="MimeType" type="string" length="32" not-null="false" />
|
---|
| 41 | <property name="parentDocumentId" column="ParentDocumentId" type="string" length="64" not-null="false" />
|
---|
| 42 | <property name="parentDocumentRelationship" column="ParentDocumentRelationship" type="string" length="64" not-null="false" />
|
---|
| 43 | <property name="practiceSetting" column="PracticeSetting" type="string" length="64" not-null="false" />
|
---|
| 44 | <property name="practiceSettingScheme" column="PracticeSettingScheme" type="string" length="64" not-null="false" />
|
---|
| 45 | <property name="practiceSettingDisplayName" column="PracticeSettingDisplayName" type="string" length="64" not-null="false" />
|
---|
| 46 | <property name="size" column="Size" type="int" not-null="false" />
|
---|
| 47 | <property name="sourcePatientId" column="SourcePatientId" type="string" length="128" not-null="false" />
|
---|
| 48 | <property name="pid3" column="Pid3" type="string" length="128" not-null="false" />
|
---|
| 49 | <property name="pid5" column="Pid5" type="string" length="128" not-null="false" />
|
---|
| 50 | <property name="pid7" column="Pid7" type="string" length="128" not-null="false" />
|
---|
| 51 | <property name="pid8" column="Pid8" type="string" length="128" not-null="false" />
|
---|
| 52 | <property name="pid11" column="Pid11" type="string" length="128" not-null="false" />
|
---|
| 53 | <property name="typeCode" column="TypeCode" type="string" length="64" not-null="false" />
|
---|
| 54 | <property name="typeCodeScheme" column="TypeCodeScheme" type="string" length="64" not-null="false" />
|
---|
| 55 | <property name="typeCodeDisplayName" column="TypeCodeDisplayName" type="string" length="64" not-null="false" />
|
---|
| 56 | <property name="documentUri" column="DocumentUri" type="string" length="128" not-null="false" />
|
---|
| 57 | <property name="rawData" column="RawData" type="binary" not-null="false" />
|
---|
| 58 | <property name="persistentCode" column="Persistent" type="int" not-null="true" />
|
---|
| 59 | <set name="eventCodes" inverse="true" lazy="false" cascade="all-delete-orphan">
|
---|
| 60 | <key column="documentid"/>
|
---|
| 61 | <one-to-many class="EventCode"/>
|
---|
| 62 | </set>
|
---|
| 63 | </class>
|
---|
| 64 | </hibernate-mapping>
|
---|