Skip to content

Commit

Permalink
[#205] Add a field rejectMessage to PatientRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
palagdan committed Oct 24, 2024
1 parent d9f589d commit ed82801
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/cz/cvut/kbss/study/dto/PatientRecordDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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{" +
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/cz/cvut/kbss/study/model/PatientRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/model.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ rm:token rdf:type owl:DatatypeProperty .
<http://xmlns.com/foaf/0.1/mbox> rdf:type owl:DatatypeProperty .


### http://onto.fel.cvut.cz/ontologies/record-manager/has-reject-message
rm:has-reject-message rdf:type owl:DatatypeProperty .

#################################################################
# Classes
#################################################################
Expand Down

0 comments on commit ed82801

Please sign in to comment.