From ed828015b517e682592668676158164d22713fd4 Mon Sep 17 00:00:00 2001 From: Daniil Palagin Date: Thu, 24 Oct 2024 12:01:13 +0200 Subject: [PATCH] [#205] Add a field rejectMessage to PatientRecord --- .../cz/cvut/kbss/study/dto/PatientRecordDto.java | 12 ++++++++++++ .../java/cz/cvut/kbss/study/model/PatientRecord.java | 12 ++++++++++++ src/main/resources/model.ttl | 3 +++ 3 files changed, 27 insertions(+) diff --git a/src/main/java/cz/cvut/kbss/study/dto/PatientRecordDto.java b/src/main/java/cz/cvut/kbss/study/dto/PatientRecordDto.java index 8dddf25e..f5adf31f 100644 --- a/src/main/java/cz/cvut/kbss/study/dto/PatientRecordDto.java +++ b/src/main/java/cz/cvut/kbss/study/dto/PatientRecordDto.java @@ -41,6 +41,10 @@ public class PatientRecordDto extends AbstractEntity implements HasOwlKey { @OWLObjectProperty(iri = Vocabulary.s_p_has_phase) private RecordPhase phase; + @OWLDataProperty(iri = Vocabulary.s_p_has_reject_message) + private String rejectMessage; + + @Override public String getKey() { return key; @@ -115,6 +119,14 @@ public void setPhase(RecordPhase phase) { this.phase = phase; } + public String getRejectMessage() { + return rejectMessage; + } + + public void setRejectMessage(String rejectMessage) { + this.rejectMessage = rejectMessage; + } + @Override public String toString() { return "PatientRecordDto{" + diff --git a/src/main/java/cz/cvut/kbss/study/model/PatientRecord.java b/src/main/java/cz/cvut/kbss/study/model/PatientRecord.java index 3184e3d9..43925dbf 100644 --- a/src/main/java/cz/cvut/kbss/study/model/PatientRecord.java +++ b/src/main/java/cz/cvut/kbss/study/model/PatientRecord.java @@ -59,6 +59,9 @@ public class PatientRecord implements Serializable, HasOwlKey, HasUri { @OWLObjectProperty(iri = Vocabulary.s_p_has_phase, cascade = {CascadeType.MERGE}, fetch = FetchType.EAGER) private RecordPhase phase; + @OWLDataProperty(iri = Vocabulary.s_p_has_reject_message) + private String rejectMessage; + @Override public URI getUri() { return uri; @@ -146,6 +149,15 @@ public RecordPhase getPhase() { return phase; } + public String getRejectMessage() { + return rejectMessage; + } + + public void setRejectMessage(String rejectMessage) { + this.rejectMessage = rejectMessage; + } + + public void setPhase(RecordPhase phase) { this.phase = phase; } diff --git a/src/main/resources/model.ttl b/src/main/resources/model.ttl index 863b9d68..35261110 100644 --- a/src/main/resources/model.ttl +++ b/src/main/resources/model.ttl @@ -132,6 +132,9 @@ rm:token rdf:type owl:DatatypeProperty . rdf:type owl:DatatypeProperty . +### http://onto.fel.cvut.cz/ontologies/record-manager/has-reject-message +rm:has-reject-message rdf:type owl:DatatypeProperty . + ################################################################# # Classes #################################################################