-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from ehrbase/feature/ehrbase/project_manageme…
…nt/issues/424_new_dto_flattener_aproch Feature/ehrbase/project management/issues/424 new dto flattener aproch
- Loading branch information
Showing
899 changed files
with
56,145 additions
and
22,311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Updating the SDK | ||
|
||
This file documents any backwards-incompatible changes in SDK and | ||
assists users migrating to a new version. | ||
|
||
## SDK 1.0.0 | ||
### Using the sdk with old generated classes | ||
Classes generated with the old SDK can be used with the new version | ||
### Migrating from old generated classes to new ones | ||
It is recommended to update the generated classes. To do this: | ||
* Update the sdk version | ||
* Rename any Name with *defningcode to *defningCode | ||
* replace the EnumValueSet in your local shareddefinition folder with the new from the sdk: | ||
* Language -> org.ehrbase.client.classgenerator.shareddefinition.Language | ||
* CategoryDefiningcode -> org.ehrbase.client.classgenerator.shareddefinition.Category | ||
* MathFunctionDefiningcode -> org.ehrbase.client.classgenerator.shareddefinition.MathFunction | ||
* SettingDefiningcode -> org.ehrbase.client.classgenerator.shareddefinition.Setting | ||
* Territory -> org.ehrbase.client.classgenerator.shareddefinition.Territory | ||
* TransitionDefiningcode -> org.ehrbase.client.classgenerator.shareddefinition.Transition | ||
|
||
* Generate your classes new with the generator using generator/src/main/resources/LegacyConfig.yaml as config | ||
* Delete you old classes and replaces them with the new one | ||
* There may be some more changes regrading the naming or the class structure which you have to change in your code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
client/src/main/java/org/ehrbase/client/classgenerator/interfaces/CompositionEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/* | ||
* | ||
* * Copyright (c) 2020 Stefan Spiska (Vitasystems GmbH) and Hannover Medical School | ||
* * This file is part of Project EHRbase | ||
* * | ||
* * Licensed under the Apache License, Version 2.0 (the "License"); | ||
* * you may not use this file except in compliance with the License. | ||
* * You may obtain a copy of the License at | ||
* * | ||
* * http://www.apache.org/licenses/LICENSE-2.0 | ||
* * | ||
* * Unless required by applicable law or agreed to in writing, software | ||
* * distributed under the License is distributed on an "AS IS" BASIS, | ||
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* * See the License for the specific language governing permissions and | ||
* * limitations under the License. | ||
* | ||
*/ | ||
|
||
package org.ehrbase.client.classgenerator.interfaces; | ||
|
||
import com.nedap.archie.rm.generic.Participation; | ||
import com.nedap.archie.rm.generic.PartyIdentified; | ||
import com.nedap.archie.rm.generic.PartyProxy; | ||
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; | ||
|
||
import java.time.temporal.TemporalAccessor; | ||
import java.util.List; | ||
|
||
public interface CompositionEntity extends LocatableEntity { | ||
|
||
void setParticipations(List<Participation> participations); | ||
|
||
List<Participation> getParticipations(); | ||
|
||
void setHealthCareFacility(PartyIdentified healthCareFacility); | ||
|
||
PartyIdentified getHealthCareFacility(); | ||
|
||
void setComposer(PartyProxy composer); | ||
|
||
PartyProxy getComposer(); | ||
|
||
void setLanguage(Language language); | ||
|
||
Language getLanguage(); | ||
|
||
void setCategoryDefiningCode(Category categoryDefiningCode); | ||
|
||
Category getCategoryDefiningCode(); | ||
|
||
void setTerritory(Territory territory); | ||
|
||
Territory getTerritory(); | ||
|
||
VersionUid getVersionUid(); | ||
|
||
void setVersionUid(VersionUid versionUid); | ||
|
||
void setStartTimeValue(TemporalAccessor startTimeValue); | ||
|
||
TemporalAccessor getStartTimeValue(); | ||
|
||
void setEndTimeValue(TemporalAccessor endTimeValue); | ||
|
||
TemporalAccessor getEndTimeValue(); | ||
|
||
void setLocation(String location); | ||
|
||
String getLocation(); | ||
|
||
void setSettingDefiningCode(Setting settingDefiningCode); | ||
|
||
Setting getSettingDefiningCode(); | ||
} |
34 changes: 34 additions & 0 deletions
34
client/src/main/java/org/ehrbase/client/classgenerator/interfaces/EntryEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* | ||
* * Copyright (c) 2020 Stefan Spiska (Vitasystems GmbH) and Hannover Medical School | ||
* * This file is part of Project EHRbase | ||
* * | ||
* * Licensed under the Apache License, Version 2.0 (the "License"); | ||
* * you may not use this file except in compliance with the License. | ||
* * You may obtain a copy of the License at | ||
* * | ||
* * http://www.apache.org/licenses/LICENSE-2.0 | ||
* * | ||
* * Unless required by applicable law or agreed to in writing, software | ||
* * distributed under the License is distributed on an "AS IS" BASIS, | ||
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* * See the License for the specific language governing permissions and | ||
* * limitations under the License. | ||
* | ||
*/ | ||
|
||
package org.ehrbase.client.classgenerator.interfaces; | ||
|
||
import com.nedap.archie.rm.generic.PartyProxy; | ||
import org.ehrbase.client.classgenerator.interfaces.LocatableEntity; | ||
import org.ehrbase.client.classgenerator.shareddefinition.Language; | ||
|
||
public interface EntryEntity extends LocatableEntity { | ||
void setSubject(PartyProxy subject); | ||
|
||
PartyProxy getSubject(); | ||
|
||
void setLanguage(Language language); | ||
|
||
Language getLanguage(); | ||
} |
28 changes: 28 additions & 0 deletions
28
client/src/main/java/org/ehrbase/client/classgenerator/interfaces/EventEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* | ||
* * Copyright (c) 2020 Stefan Spiska (Vitasystems GmbH) and Hannover Medical School | ||
* * This file is part of Project EHRbase | ||
* * | ||
* * Licensed under the Apache License, Version 2.0 (the "License"); | ||
* * you may not use this file except in compliance with the License. | ||
* * You may obtain a copy of the License at | ||
* * | ||
* * http://www.apache.org/licenses/LICENSE-2.0 | ||
* * | ||
* * Unless required by applicable law or agreed to in writing, software | ||
* * distributed under the License is distributed on an "AS IS" BASIS, | ||
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* * See the License for the specific language governing permissions and | ||
* * limitations under the License. | ||
* | ||
*/ | ||
|
||
package org.ehrbase.client.classgenerator.interfaces; | ||
|
||
import java.time.temporal.TemporalAccessor; | ||
|
||
public interface EventEntity { | ||
void setTimeValue(TemporalAccessor timeValue); | ||
|
||
TemporalAccessor getTimeValue(); | ||
} |
40 changes: 40 additions & 0 deletions
40
client/src/main/java/org/ehrbase/client/classgenerator/interfaces/IntervalEventEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* | ||
* * Copyright (c) 2020 Stefan Spiska (Vitasystems GmbH) and Hannover Medical School | ||
* * This file is part of Project EHRbase | ||
* * | ||
* * Licensed under the Apache License, Version 2.0 (the "License"); | ||
* * you may not use this file except in compliance with the License. | ||
* * You may obtain a copy of the License at | ||
* * | ||
* * http://www.apache.org/licenses/LICENSE-2.0 | ||
* * | ||
* * Unless required by applicable law or agreed to in writing, software | ||
* * distributed under the License is distributed on an "AS IS" BASIS, | ||
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* * See the License for the specific language governing permissions and | ||
* * limitations under the License. | ||
* | ||
*/ | ||
|
||
package org.ehrbase.client.classgenerator.interfaces; | ||
|
||
import org.ehrbase.client.classgenerator.shareddefinition.MathFunction; | ||
|
||
import java.time.temporal.TemporalAccessor; | ||
import java.time.temporal.TemporalAmount; | ||
|
||
public interface IntervalEventEntity extends LocatableEntity, EventEntity { | ||
|
||
void setWidthValue(TemporalAmount widthValue); | ||
|
||
TemporalAmount getWidthValue(); | ||
|
||
void setMathFunctionDefiningCode(MathFunction mathFunctionDefiningCode); | ||
|
||
MathFunction getMathFunctionDefiningCode(); | ||
|
||
void setSampleCount(Long sampleCount); | ||
|
||
Long getSampleCount(); | ||
} |
Oops, something went wrong.