thanks for replying
This is my entity class that are converted by template to java code using ehrbase sdk
package com.openehr.api.symptomcomposition;
import com.nedap.archie.rm.archetyped.FeederAudit;
import com.nedap.archie.rm.datastructures.Cluster;
import com.nedap.archie.rm.generic.Participation;
import com.nedap.archie.rm.generic.PartyIdentified;
import com.nedap.archie.rm.generic.PartyProxy;
import com.openehr.api.symptomcomposition.definition.InfectiousDiseaseSummaryEvaluation;
import com.openehr.api.symptomcomposition.definition.SymptomSignObservation;
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.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.encounter.v1”)
@Generated(
value = “org.ehrbase.client.classgenerator.ClassGenerator”,
date = “2022-07-23T11:51:28.303654100+05:30”,
comments = “https://github.com/ehrbase/openEHR_SDK Version: 1.20.0-SNAPSHOT”
)
@Template(“symptom”)
public class SymptomComposition implements CompositionEntity {
/**
- Path: symptom/category
*/
@Path("/category|defining_code")
private Category categoryDefiningCode;
/**
- Path: symptom/context/Extension
- Description: Additional information required to capture local context or to align with other reference models/formalisms.
- Comment: e.g. Local hospital departmental infomation or additional metadata to align with FHIR or CIMI equivalents.
*/
@Path("/context/other_context[at0001]/items[at0002]")
private List extension;
/**
- Path: symptom/context/start_time
*/
@Path("/context/start_time|value")
private TemporalAccessor startTimeValue;
/**
- Path: symptom/context/participations
*/
@Path("/context/participations")
private List participations;
/**
- Path: symptom/context/end_time
*/
@Path("/context/end_time|value")
private TemporalAccessor endTimeValue;
/**
- Path: symptom/context/location
*/
@Path("/context/location")
private String location;
/**
- Path: symptom/context/health_care_facility
*/
@Path("/context/health_care_facility")
private PartyIdentified healthCareFacility;
/**
- Path: symptom/context/setting
*/
@Path("/context/setting|defining_code")
private Setting settingDefiningCode;
/**
- Path: symptom/vitals/Symptom/Sign
- Description: Reported observation of a physical or mental disturbance in an individual.
*/
@Path("/content[openEHR-EHR-SECTION.adhoc.v1 and name/value=‘vitals’]/items[openEHR-EHR-OBSERVATION.symptom_sign.v0]")
private SymptomSignObservation symptomSign;
/**
- Path: symptom/vitals/Infectious disease summary
- Description: Summary details about an infectious disease and factors related to assessment of immunity.
*/
@Path("/content[openEHR-EHR-SECTION.adhoc.v1 and name/value=‘vitals’]/items[openEHR-EHR-EVALUATION.infectious_disease_summary.v0]")
private InfectiousDiseaseSummaryEvaluation infectiousDiseaseSummary;
/**
- Path: symptom/composer
*/
@Path("/composer")
private PartyProxy composer;
/**
- Path: symptom/language
*/
@Path("/language")
private Language language;
/**
- Path: symptom/feeder_audit
*/
@Path("/feeder_audit")
private FeederAudit feederAudit;
/**
- Path: symptom/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 setExtension(List extension) {
this.extension = extension;
}
public List getExtension() {
return this.extension ;
}
public void setStartTimeValue(TemporalAccessor startTimeValue) {
this.startTimeValue = startTimeValue;
}
public TemporalAccessor getStartTimeValue() {
return this.startTimeValue ;
}
public void setParticipations(List participations) {
this.participations = participations;
}
public List 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 setSymptomSign(SymptomSignObservation symptomSign) {
this.symptomSign = symptomSign;
}
public SymptomSignObservation getSymptomSign() {
return this.symptomSign ;
}
public void setInfectiousDiseaseSummary(
InfectiousDiseaseSummaryEvaluation infectiousDiseaseSummary) {
this.infectiousDiseaseSummary = infectiousDiseaseSummary;
}
public InfectiousDiseaseSummaryEvaluation getInfectiousDiseaseSummary() {
return this.infectiousDiseaseSummary ;
}
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 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;
}
}