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

Feature/sync/aql tests n fix #207

Merged
merged 7 commits into from
Apr 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
package org.ehrbase.client.classgenerator.examples.minimalevaluationenv1composition;

import com.nedap.archie.rm.archetyped.FeederAudit;
import com.nedap.archie.rm.generic.Participation;
import com.nedap.archie.rm.generic.PartyIdentified;
import com.nedap.archie.rm.generic.PartyProxy;
import java.lang.String;
import java.time.temporal.TemporalAccessor;
import java.util.List;
import javax.annotation.processing.Generated;
import org.ehrbase.client.annotations.Archetype;
import org.ehrbase.client.annotations.Entity;
import org.ehrbase.client.annotations.Id;
import org.ehrbase.client.annotations.Path;
import org.ehrbase.client.annotations.Template;
import org.ehrbase.client.classgenerator.examples.minimalevaluationenv1composition.definition.MinimalEvaluation;
import org.ehrbase.client.classgenerator.interfaces.CompositionEntity;
import org.ehrbase.client.classgenerator.shareddefinition.Category;
import org.ehrbase.client.classgenerator.shareddefinition.Language;
import org.ehrbase.client.classgenerator.shareddefinition.Setting;
import org.ehrbase.client.classgenerator.shareddefinition.Territory;
import org.ehrbase.client.openehrclient.VersionUid;

@Entity
@Archetype("openEHR-EHR-COMPOSITION.minimal.v1")
@Generated(
value = "org.ehrbase.client.classgenerator.ClassGenerator",
date = "2021-03-22T13:27:16.902461+07:00",
comments = "https://github.com/ehrbase/openEHR_SDK Version: 1.3.0"
)
@Template("minimal_evaluation.en.v1")
public class MinimalEvaluationEnV1Composition implements CompositionEntity {
/**
* Path: Minimal/category
*/
@Path("/category|defining_code")
private Category categoryDefiningCode;

/**
* Path: Minimal/Minimal
* Description: unknown
*/
@Path("/content[openEHR-EHR-EVALUATION.minimal.v1]")
private List<MinimalEvaluation> minimal;

/**
* Path: Minimal/composer
*/
@Path("/composer")
private PartyProxy composer;

/**
* Path: Minimal/language
*/
@Path("/language")
private Language language;

/**
* Path: Minimal/context/start_time
*/
@Path("/context/start_time|value")
private TemporalAccessor startTimeValue;

/**
* Path: Minimal/context/participations
*/
@Path("/context/participations")
private List<Participation> participations;

/**
* Path: Minimal/context/end_time
*/
@Path("/context/end_time|value")
private TemporalAccessor endTimeValue;

/**
* Path: Minimal/context/location
*/
@Path("/context/location")
private String location;

/**
* Path: Minimal/context/health_care_facility
*/
@Path("/context/health_care_facility")
private PartyIdentified healthCareFacility;

/**
* Path: Minimal/context/setting
*/
@Path("/context/setting|defining_code")
private Setting settingDefiningCode;

/**
* Path: Minimal/feeder_audit
*/
@Path("/feeder_audit")
private FeederAudit feederAudit;

/**
* Path: Minimal/territory
*/
@Path("/territory")
private Territory territory;

@Id
private VersionUid versionUid;

public void setCategoryDefiningCode(Category categoryDefiningCode) {
this.categoryDefiningCode = categoryDefiningCode;
}

public Category getCategoryDefiningCode() {
return this.categoryDefiningCode ;
}

public void setMinimal(List<MinimalEvaluation> minimal) {
this.minimal = minimal;
}

public List<MinimalEvaluation> getMinimal() {
return this.minimal ;
}

public void setComposer(PartyProxy composer) {
this.composer = composer;
}

public PartyProxy getComposer() {
return this.composer ;
}

public void setLanguage(Language language) {
this.language = language;
}

public Language getLanguage() {
return this.language ;
}

public void setStartTimeValue(TemporalAccessor startTimeValue) {
this.startTimeValue = startTimeValue;
}

public TemporalAccessor getStartTimeValue() {
return this.startTimeValue ;
}

public void setParticipations(List<Participation> participations) {
this.participations = participations;
}

public List<Participation> getParticipations() {
return this.participations ;
}

public void setEndTimeValue(TemporalAccessor endTimeValue) {
this.endTimeValue = endTimeValue;
}

public TemporalAccessor getEndTimeValue() {
return this.endTimeValue ;
}

public void setLocation(String location) {
this.location = location;
}

public String getLocation() {
return this.location ;
}

public void setHealthCareFacility(PartyIdentified healthCareFacility) {
this.healthCareFacility = healthCareFacility;
}

public PartyIdentified getHealthCareFacility() {
return this.healthCareFacility ;
}

public void setSettingDefiningCode(Setting settingDefiningCode) {
this.settingDefiningCode = settingDefiningCode;
}

public Setting getSettingDefiningCode() {
return this.settingDefiningCode ;
}

public void setFeederAudit(FeederAudit feederAudit) {
this.feederAudit = feederAudit;
}

public FeederAudit getFeederAudit() {
return this.feederAudit ;
}

public void setTerritory(Territory territory) {
this.territory = territory;
}

public Territory getTerritory() {
return this.territory ;
}

public VersionUid getVersionUid() {
return this.versionUid ;
}

public void setVersionUid(VersionUid versionUid) {
this.versionUid = versionUid;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
package org.ehrbase.client.classgenerator.examples.minimalevaluationenv1composition;

import com.nedap.archie.rm.archetyped.FeederAudit;
import com.nedap.archie.rm.generic.Participation;
import com.nedap.archie.rm.generic.PartyIdentified;
import com.nedap.archie.rm.generic.PartyProxy;
import java.lang.String;
import java.time.temporal.TemporalAccessor;
import org.ehrbase.client.aql.containment.Containment;
import org.ehrbase.client.aql.field.AqlFieldImp;
import org.ehrbase.client.aql.field.ListAqlFieldImp;
import org.ehrbase.client.aql.field.ListSelectAqlField;
import org.ehrbase.client.aql.field.SelectAqlField;
import org.ehrbase.client.classgenerator.examples.minimalevaluationenv1composition.definition.MinimalEvaluation;
import org.ehrbase.client.classgenerator.shareddefinition.Category;
import org.ehrbase.client.classgenerator.shareddefinition.Language;
import org.ehrbase.client.classgenerator.shareddefinition.Setting;
import org.ehrbase.client.classgenerator.shareddefinition.Territory;

public class MinimalEvaluationEnV1CompositionContainment extends Containment {
public SelectAqlField<MinimalEvaluationEnV1Composition> MINIMAL_EVALUATION_EN_V1_COMPOSITION = new AqlFieldImp<MinimalEvaluationEnV1Composition>(MinimalEvaluationEnV1Composition.class, "", "MinimalEvaluationEnV1Composition", MinimalEvaluationEnV1Composition.class, this);

public SelectAqlField<Category> CATEGORY_DEFINING_CODE = new AqlFieldImp<Category>(MinimalEvaluationEnV1Composition.class, "/category|defining_code", "categoryDefiningCode", Category.class, this);

public ListSelectAqlField<MinimalEvaluation> MINIMAL = new ListAqlFieldImp<MinimalEvaluation>(MinimalEvaluationEnV1Composition.class, "/content[openEHR-EHR-EVALUATION.minimal.v1]", "minimal", MinimalEvaluation.class, this);

public SelectAqlField<PartyProxy> COMPOSER = new AqlFieldImp<PartyProxy>(MinimalEvaluationEnV1Composition.class, "/composer", "composer", PartyProxy.class, this);

public SelectAqlField<Language> LANGUAGE = new AqlFieldImp<Language>(MinimalEvaluationEnV1Composition.class, "/language", "language", Language.class, this);

public SelectAqlField<TemporalAccessor> START_TIME_VALUE = new AqlFieldImp<TemporalAccessor>(MinimalEvaluationEnV1Composition.class, "/context/start_time|value", "startTimeValue", TemporalAccessor.class, this);

public ListSelectAqlField<Participation> PARTICIPATIONS = new ListAqlFieldImp<Participation>(MinimalEvaluationEnV1Composition.class, "/context/participations", "participations", Participation.class, this);

public SelectAqlField<TemporalAccessor> END_TIME_VALUE = new AqlFieldImp<TemporalAccessor>(MinimalEvaluationEnV1Composition.class, "/context/end_time|value", "endTimeValue", TemporalAccessor.class, this);

public SelectAqlField<String> LOCATION = new AqlFieldImp<String>(MinimalEvaluationEnV1Composition.class, "/context/location", "location", String.class, this);

public SelectAqlField<PartyIdentified> HEALTH_CARE_FACILITY = new AqlFieldImp<PartyIdentified>(MinimalEvaluationEnV1Composition.class, "/context/health_care_facility", "healthCareFacility", PartyIdentified.class, this);

public SelectAqlField<Setting> SETTING_DEFINING_CODE = new AqlFieldImp<Setting>(MinimalEvaluationEnV1Composition.class, "/context/setting|defining_code", "settingDefiningCode", Setting.class, this);

public SelectAqlField<FeederAudit> FEEDER_AUDIT = new AqlFieldImp<FeederAudit>(MinimalEvaluationEnV1Composition.class, "/feeder_audit", "feederAudit", FeederAudit.class, this);

public SelectAqlField<Territory> TERRITORY = new AqlFieldImp<Territory>(MinimalEvaluationEnV1Composition.class, "/territory", "territory", Territory.class, this);

private MinimalEvaluationEnV1CompositionContainment() {
super("openEHR-EHR-COMPOSITION.minimal.v1");
}

public static MinimalEvaluationEnV1CompositionContainment getInstance() {
return new MinimalEvaluationEnV1CompositionContainment();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
package org.ehrbase.client.classgenerator.examples.minimalevaluationenv1composition.definition;

import com.nedap.archie.rm.archetyped.FeederAudit;
import com.nedap.archie.rm.generic.PartyProxy;
import java.lang.Double;
import java.lang.String;
import javax.annotation.processing.Generated;
import org.ehrbase.client.annotations.Archetype;
import org.ehrbase.client.annotations.Entity;
import org.ehrbase.client.annotations.Path;
import org.ehrbase.client.classgenerator.interfaces.EntryEntity;
import org.ehrbase.client.classgenerator.shareddefinition.Language;
import org.ehrbase.client.classgenerator.shareddefinition.NullFlavour;

@Entity
@Archetype("openEHR-EHR-EVALUATION.minimal.v1")
@Generated(
value = "org.ehrbase.client.classgenerator.ClassGenerator",
date = "2021-03-22T13:27:16.936346+07:00",
comments = "https://github.com/ehrbase/openEHR_SDK Version: 1.3.0"
)
public class MinimalEvaluation implements EntryEntity {
/**
* Path: Minimal/Minimal/quantity
* Description: *
*/
@Path("/data[at0001]/items[at0002]/value|magnitude")
private Double quantityMagnitude;

/**
* Path: Minimal/Minimal/quantity
* Description: *
*/
@Path("/data[at0001]/items[at0002]/value|units")
private String quantityUnits;

/**
* Path: Minimal/Minimal/Arbol/quantity/null_flavour
*/
@Path("/data[at0001]/items[at0002]/null_flavour|defining_code")
private NullFlavour quantityNullFlavourDefiningCode;

/**
* Path: Minimal/Minimal/subject
*/
@Path("/subject")
private PartyProxy subject;

/**
* Path: Minimal/Minimal/language
*/
@Path("/language")
private Language language;

/**
* Path: Minimal/Minimal/feeder_audit
*/
@Path("/feeder_audit")
private FeederAudit feederAudit;

public void setQuantityMagnitude(Double quantityMagnitude) {
this.quantityMagnitude = quantityMagnitude;
}

public Double getQuantityMagnitude() {
return this.quantityMagnitude ;
}

public void setQuantityUnits(String quantityUnits) {
this.quantityUnits = quantityUnits;
}

public String getQuantityUnits() {
return this.quantityUnits ;
}

public void setQuantityNullFlavourDefiningCode(NullFlavour quantityNullFlavourDefiningCode) {
this.quantityNullFlavourDefiningCode = quantityNullFlavourDefiningCode;
}

public NullFlavour getQuantityNullFlavourDefiningCode() {
return this.quantityNullFlavourDefiningCode ;
}

public void setSubject(PartyProxy subject) {
this.subject = subject;
}

public PartyProxy getSubject() {
return this.subject ;
}

public void setLanguage(Language language) {
this.language = language;
}

public Language getLanguage() {
return this.language ;
}

public void setFeederAudit(FeederAudit feederAudit) {
this.feederAudit = feederAudit;
}

public FeederAudit getFeederAudit() {
return this.feederAudit ;
}
}
Loading