Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues/29 add record state #31

Merged
merged 11 commits into from
Dec 13, 2023
11 changes: 11 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 @@ -52,6 +52,9 @@ public class PatientRecord implements Serializable, HasOwlKey {
CascadeType.REMOVE}, fetch = FetchType.EAGER)
private Question question;

@OWLObjectProperty(iri = Vocabulary.s_p_has_state)
blcham marked this conversation as resolved.
Show resolved Hide resolved
private URI state;

public URI getUri() {
return uri;
}
Expand Down Expand Up @@ -134,6 +137,14 @@ public void setFormTemplate(String formTemplate) {
this.formTemplate = formTemplate;
}

public URI getState() {
return state;
}

public void setState(URI state) {
this.state = state;
}

@Override
public String toString() {
return "PatientRecord{" +
Expand Down
27 changes: 27 additions & 0 deletions src/main/resources/model.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ rm:relates-to rdf:type owl:ObjectProperty .
rm:was-treated-at rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf rm:relates-to .

### http://onto.fel.cvut.cz/ontologies/record-manager/has-state
rm:has-state rdf:type owl:ObjectProperty ;
rdfs:label "has-state"@en .
kostobog marked this conversation as resolved.
Show resolved Hide resolved


#################################################################
# Data properties
Expand Down Expand Up @@ -163,5 +167,28 @@ rm:user rdf:type owl:Class ;
rm:impersonator rdf:type owl:Class ;
rdfs:label "Impersonator"@en .

### http://onto.fel.cvut.cz/ontologies/record-manager/record-state
rm:record-state rdf:type owl:Class ;
rdfs:label "record state"@en .

### http://onto.fel.cvut.cz/ontologies/record-manager/open-record-state
rm:open-record-state rdf:type owl:Class ;
blcham marked this conversation as resolved.
Show resolved Hide resolved
rdfs:subClassOf rm:record-state ;
rdfs:label "open record state"@en .

### http://onto.fel.cvut.cz/ontologies/record-manager/valid-record-state
rm:valid-record-state rdf:type owl:Class ;
rdfs:subClassOf rm:record-state ;
rdfs:label "valid record state"@en .

### http://onto.fel.cvut.cz/ontologies/record-manager/completed-record-state
rm:completed-record-state rdf:type owl:Class ;
rdfs:subClassOf rm:record-state ;
rdfs:label "completed record state"@en .

### http://onto.fel.cvut.cz/ontologies/record-manager/published-record-state
rm:published-record-state rdf:type owl:Class ;
rdfs:subClassOf rm:record-state ;
rdfs:label "published record state"@en .

### Generated by the OWL API (version 4.2.8.20170104-2310) https://github.com/owlcs/owlapi
Loading