View Javadoc
1   package ca.uhn.fhir.jpa.entity;
2   
3   /*
4    * #%L
5    * HAPI FHIR JPA Server
6    * %%
7    * Copyright (C) 2014 - 2018 University Health Network
8    * %%
9    * Licensed under the Apache License, Version 2.0 (the "License");
10   * you may not use this file except in compliance with the License.
11   * You may obtain a copy of the License at
12   * 
13   * http://www.apache.org/licenses/LICENSE-2.0
14   * 
15   * Unless required by applicable law or agreed to in writing, software
16   * distributed under the License is distributed on an "AS IS" BASIS,
17   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   * See the License for the specific language governing permissions and
19   * limitations under the License.
20   * #L%
21   */
22  
23  import javax.persistence.*;
24  import java.io.Serializable;
25  
26  @Entity
27  @Table(name = "TRM_CONCEPT_DESIG", uniqueConstraints = {
28  }, indexes = {
29  })
30  public class TermConceptDesignation implements Serializable {
31  
32  	private static final long serialVersionUID = 1L;
33  	@ManyToOne
34  	@JoinColumn(name = "CONCEPT_PID", referencedColumnName = "PID", foreignKey = @ForeignKey(name = "FK_CONCEPTDESIG_CONCEPT"))
35  	private TermConcept myConcept;
36  	@Id()
37  	@SequenceGenerator(name = "SEQ_CONCEPT_DESIG_PID", sequenceName = "SEQ_CONCEPT_DESIG_PID")
38  	@GeneratedValue(strategy = GenerationType.AUTO, generator = "SEQ_CONCEPT_DESIG_PID")
39  	@Column(name = "PID")
40  	private Long myId;
41  	@Column(name = "LANG", length = 500, nullable = true)
42  	private String myLanguage;
43  	@Column(name = "USE_SYSTEM", length = 500, nullable = true)
44  	private String myUseSystem;
45  	@Column(name = "USE_CODE", length = 500, nullable = true)
46  	private String myUseCode;
47  	@Column(name = "USE_DISPLAY", length = 500, nullable = true)
48  	private String myUseDisplay;
49  	@Column(name = "VAL", length = 500, nullable = false)
50  	private String myValue;
51  	/**
52  	 * TODO: Make this non-null
53  	 *
54  	 * @since 3.5.0
55  	 */
56  	@ManyToOne
57  	@JoinColumn(name = "CS_VER_PID", nullable = true, referencedColumnName = "PID", foreignKey = @ForeignKey(name = "FK_CONCEPTDESIG_CSV"))
58  	private TermCodeSystemVersion myCodeSystemVersion;
59  
60  	public String getLanguage() {
61  		return myLanguage;
62  	}
63  
64  	public TermConceptDesignation setLanguage(String theLanguage) {
65  		myLanguage = theLanguage;
66  		return this;
67  	}
68  
69  	public String getUseCode() {
70  		return myUseCode;
71  	}
72  
73  	public TermConceptDesignation setUseCode(String theUseCode) {
74  		myUseCode = theUseCode;
75  		return this;
76  	}
77  
78  	public String getUseDisplay() {
79  		return myUseDisplay;
80  	}
81  
82  	public TermConceptDesignation setUseDisplay(String theUseDisplay) {
83  		myUseDisplay = theUseDisplay;
84  		return this;
85  	}
86  
87  	public String getUseSystem() {
88  		return myUseSystem;
89  	}
90  
91  	public TermConceptDesignation setUseSystem(String theUseSystem) {
92  		myUseSystem = theUseSystem;
93  		return this;
94  	}
95  
96  	public String getValue() {
97  		return myValue;
98  	}
99  
100 	public TermConceptDesignation setValue(String theValue) {
101 		myValue = theValue;
102 		return this;
103 	}
104 
105 	public TermConceptDesignation setCodeSystemVersion(TermCodeSystemVersion theCodeSystemVersion) {
106 		myCodeSystemVersion = theCodeSystemVersion;
107 		return this;
108 	}
109 
110 	public TermConceptDesignation setConcept(TermConcept theConcept) {
111 		myConcept = theConcept;
112 		return this;
113 	}
114 
115 
116 }