mirror of
https://github.com/dnpm-dip/mv64e-mtb-dto-java.git
synced 2025-07-01 10:12:55 +00:00
Merge pull request #12 from pcvolkmer/update_datamodel
This commit is contained in:
@ -0,0 +1,20 @@
|
|||||||
|
package dev.pcvolkmer.mv64e.mtb;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.*;
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Builder
|
||||||
|
public class FamilyMemberHistory {
|
||||||
|
@Getter(onMethod_ = {@JsonProperty("id")})
|
||||||
|
@Setter(onMethod_ = {@JsonProperty("id")})
|
||||||
|
private String id;
|
||||||
|
@Getter(onMethod_ = {@JsonProperty("patient")})
|
||||||
|
@Setter(onMethod_ = {@JsonProperty("patient")})
|
||||||
|
private Reference patient;
|
||||||
|
@Getter(onMethod_ = {@JsonProperty("relationship")})
|
||||||
|
@Setter(onMethod_ = {@JsonProperty("relationship")})
|
||||||
|
private FamilyMemberHistoryRelationshipTypeCoding relationship;
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package dev.pcvolkmer.mv64e.mtb;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.*;
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Builder
|
||||||
|
public class FamilyMemberHistoryRelationshipTypeCoding {
|
||||||
|
@Getter(onMethod_ = {@JsonProperty("code")})
|
||||||
|
@Setter(onMethod_ = {@JsonProperty("code")})
|
||||||
|
private FamilyMemberHistoryRelationshipTypeCodingCode code;
|
||||||
|
@Getter(onMethod_ = {@JsonProperty("display")})
|
||||||
|
@Setter(onMethod_ = {@JsonProperty("display")})
|
||||||
|
private String display;
|
||||||
|
@Getter(onMethod_ = {@JsonProperty("system")})
|
||||||
|
@Setter(onMethod_ = {@JsonProperty("system")})
|
||||||
|
private String system;
|
||||||
|
@Getter(onMethod_ = {@JsonProperty("version")})
|
||||||
|
@Setter(onMethod_ = {@JsonProperty("version")})
|
||||||
|
private String version;
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package dev.pcvolkmer.mv64e.mtb;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import com.fasterxml.jackson.annotation.*;
|
||||||
|
|
||||||
|
public enum FamilyMemberHistoryRelationshipTypeCodingCode {
|
||||||
|
EXT, FAMMEMB;
|
||||||
|
|
||||||
|
@JsonValue
|
||||||
|
public String toValue() {
|
||||||
|
switch (this) {
|
||||||
|
case EXT: return "EXT";
|
||||||
|
case FAMMEMB: return "FAMMEMB";
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public static FamilyMemberHistoryRelationshipTypeCodingCode forValue(String value) throws IOException {
|
||||||
|
if (value.equals("EXT")) return EXT;
|
||||||
|
if (value.equals("FAMMEMB")) return FAMMEMB;
|
||||||
|
throw new IOException("Cannot deserialize FamilyMemberHistoryRelationshipTypeCodingCode");
|
||||||
|
}
|
||||||
|
}
|
@ -25,6 +25,9 @@ public class Mtb {
|
|||||||
@Getter(onMethod_ = {@JsonProperty("episodesOfCare")})
|
@Getter(onMethod_ = {@JsonProperty("episodesOfCare")})
|
||||||
@Setter(onMethod_ = {@JsonProperty("episodesOfCare")})
|
@Setter(onMethod_ = {@JsonProperty("episodesOfCare")})
|
||||||
private List<MtbEpisodeOfCare> episodesOfCare;
|
private List<MtbEpisodeOfCare> episodesOfCare;
|
||||||
|
@Getter(onMethod_ = {@JsonProperty("familyMemberHistories")})
|
||||||
|
@Setter(onMethod_ = {@JsonProperty("familyMemberHistories")})
|
||||||
|
private List<FamilyMemberHistory> familyMemberHistories;
|
||||||
@Getter(onMethod_ = {@JsonProperty("followUps")})
|
@Getter(onMethod_ = {@JsonProperty("followUps")})
|
||||||
@Setter(onMethod_ = {@JsonProperty("followUps")})
|
@Setter(onMethod_ = {@JsonProperty("followUps")})
|
||||||
private List<FollowUp> followUps;
|
private List<FollowUp> followUps;
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user