Skip to content

Commit

Permalink
[#29] Refactor field PatientRecord.state to PatientRecord.phase.
Browse files Browse the repository at this point in the history
- refactor type of PatientRecord.phase from RecordState to RecordPhase.
  • Loading branch information
kostobog committed Dec 11, 2023
1 parent 874e26c commit 002c328
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/main/java/cz/cvut/kbss/study/model/PatientRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class PatientRecord implements Serializable, HasOwlKey {

@Enumerated(EnumType.OBJECT_ONE_OF)
@OWLObjectProperty(iri = Vocabulary.s_p_has_state)
private RecordState state;
private RecordPhase phase;

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

public RecordState getState() {
return state;
public RecordPhase getPhase() {
return phase;
}

public void setState(RecordState state) {
this.state = state;
public void setPhase(RecordPhase phase) {
this.phase = phase;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import cz.cvut.kbss.jopa.model.annotations.Individual;

public enum RecordState {
public enum RecordPhase {
@Individual(iri = Vocabulary.s_c_open_record_state)
open(Vocabulary.s_c_open_record_state),
@Individual(iri = Vocabulary.s_c_valid_record_state)
Expand All @@ -14,7 +14,7 @@ public enum RecordState {

private final String iri;

RecordState(String iri) {
RecordPhase(String iri) {
this.iri = iri;
}

Expand Down

0 comments on commit 002c328

Please sign in to comment.