001/*- 002 * #%L 003 * Smile CDR - CDR 004 * %% 005 * Copyright (C) 2016 - 2026 Smile CDR, Inc. 006 * %% 007 * All rights reserved. 008 * #L% 009 */ 010package ca.cdr.api.model.json; 011 012// Created by Claude Opus 4.1 013import ca.uhn.fhir.model.api.IModelJson; 014import com.fasterxml.jackson.annotation.JsonProperty; 015import jakarta.validation.constraints.NotBlank; 016 017/** 018 * Request model for accepting a privacy notice. 019 * Contains the version of the privacy notice being accepted. 020 */ 021public class PrivacyNoticeAcceptRequestJson implements IModelJson { 022 @JsonProperty("version") 023 @NotBlank(message = "Version is required") 024 private String myVersion; 025 026 public PrivacyNoticeAcceptRequestJson() { 027 // Default constructor for JSON deserialization 028 } 029 030 /** 031 * Constructor with version. 032 * 033 * @param theVersion the privacy notice version being accepted 034 */ 035 public PrivacyNoticeAcceptRequestJson(String theVersion) { 036 myVersion = theVersion; 037 } 038 039 /** 040 * Get the privacy notice version. 041 * 042 * @return the privacy notice version 043 */ 044 public String getVersion() { 045 return myVersion; 046 } 047 048 /** 049 * Set the privacy notice version. 050 * 051 * @param theVersion the privacy notice version to set 052 */ 053 public void setVersion(String theVersion) { 054 myVersion = theVersion; 055 } 056}