|
@@ -1,10 +1,9 @@
|
|
|
package com.diagbot.entity.node;
|
|
|
|
|
|
-import com.diagbot.entity.relationship.Medicine_AgeMin;
|
|
|
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
|
-import lombok.Data;
|
|
|
import com.diagbot.entity.node.base.BaseNode;
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
+import lombok.Getter;
|
|
|
+import lombok.Setter;
|
|
|
import org.neo4j.ogm.annotation.Labels;
|
|
|
import org.neo4j.ogm.annotation.NodeEntity;
|
|
|
import org.neo4j.ogm.annotation.Relationship;
|
|
@@ -13,8 +12,9 @@ import java.io.Serializable;
|
|
|
import java.util.HashSet;
|
|
|
import java.util.Set;
|
|
|
|
|
|
-@Data
|
|
|
-@EqualsAndHashCode(callSuper = false)
|
|
|
+@Setter
|
|
|
+@Getter
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
@NodeEntity(label = "药品通用名")
|
|
|
public class Medicine extends BaseNode implements Serializable {
|
|
|
|
|
@@ -27,11 +27,9 @@ public class Medicine extends BaseNode implements Serializable {
|
|
|
@Relationship(type = "药品通用名禁忌性别", direction = Relationship.OUTGOING)
|
|
|
private Gender gender;
|
|
|
|
|
|
-
|
|
|
@Relationship(type = "药品通用名禁忌临床表现", direction = Relationship.OUTGOING)
|
|
|
private Set<ClinicalFinding> clinicalfindings = new HashSet<>();
|
|
|
|
|
|
-
|
|
|
@Relationship(type = "药品通用名禁忌实验室检查", direction = Relationship.OUTGOING)
|
|
|
private Set<LIS> lisset = new HashSet<>();
|
|
|
|