From e3b5b0002add1fe72791655c3ea77fea18148dc8 Mon Sep 17 00:00:00 2001 From: Silvio Hermann Date: Mon, 30 Sep 2024 11:20:16 +0200 Subject: [PATCH] #550 Added personId field to PersonIdentifier and updated javadoc --- .../his/api/v1/cs/psv/PersonIdentifier.java | 32 +++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/psv/PersonIdentifier.java b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/psv/PersonIdentifier.java index 42b606c14..99024e03c 100644 --- a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/psv/PersonIdentifier.java +++ b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/psv/PersonIdentifier.java @@ -1,23 +1,49 @@ package de.uni_jena.thunibib.his.api.v1.cs.psv; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; import de.uni_jena.thunibib.his.api.v1.cs.sys.values.SysValue; /** * Path: /api/v1/cs/psv/person/identifier * - * At least one of these rights: RIGHT_CS_PSV_PERSON_VIEW_PERSON_IDENTIFIER + * At least these rights: RIGHT_CS_PSV_PERSON_VIEW_PERSON_IDENTIFIER, RIGHT_CS_PSV_PERSON_VIEW_PERSON_MAINDATA + * + * @author shermann (Silvio Hermann) * */ +@JsonIgnoreProperties(ignoreUnknown = true) public class PersonIdentifier extends SysValue { - public static String getValueParamaterName() { + @JsonProperty("personId") + private int personId; + + @JsonProperty("identifierValue") + private String identifierValue; + + @JsonProperty("identifierType") + private String identifierType; + + public static String getValueParameterName() { return "identifierValue"; } - public static String getTypeParamaterName() { + public static String getTypeParameterName() { return "typeUniquename"; } public static String getPath() { return "cs/psv/person/identifier"; } + + public int getPersonId() { + return personId; + } + + public String getIdentifierValue() { + return identifierValue; + } + + public String getIdentifierType() { + return identifierType; + } }