/// <summary>
        /// Initializes a new instance of the <see cref="PaginationLink" /> class.
        /// </summary>
        /// <param name="self">self (required).</param>
        /// <param name="next">next.</param>
        public PaginationLink(PatientLinkSelf self = default(PatientLinkSelf), PaginationLinkNext next = default(PaginationLinkNext))
        {
            // to ensure "self" is required (not null)
            if (self == null)
            {
                throw new InvalidDataException("self is a required property for PaginationLink and cannot be null");
            }
            else
            {
                this.Self = self;
            }

            this.Next = next;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PatientLink" /> class.
        /// </summary>
        /// <param name="self">self (required).</param>
        /// <param name="patient">patient.</param>
        /// <param name="sessions">An array of URIs of the associated session resources.</param>
        public PatientLink(PatientLinkSelf self = default(PatientLinkSelf), PatientLinkPatient patient = default(PatientLinkPatient), List <Object> sessions = default(List <Object>))
        {
            // to ensure "self" is required (not null)
            if (self == null)
            {
                throw new InvalidDataException("self is a required property for PatientLink and cannot be null");
            }
            else
            {
                this.Self = self;
            }

            this.Patient  = patient;
            this.Sessions = sessions;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SessionLink" /> class.
        /// </summary>
        /// <param name="self">self (required).</param>
        /// <param name="session">session.</param>
        /// <param name="patient">patient.</param>
        /// <param name="b2bOptic">b2bOptic.</param>
        public SessionLink(PatientLinkSelf self = default(PatientLinkSelf), SessionLinkSession session = default(SessionLinkSession), SessionLinkPatient patient = default(SessionLinkPatient), SessionLinkB2bOptic b2bOptic = default(SessionLinkB2bOptic))
        {
            // to ensure "self" is required (not null)
            if (self == null)
            {
                throw new InvalidDataException("self is a required property for SessionLink and cannot be null");
            }
            else
            {
                this.Self = self;
            }

            this.Session  = session;
            this.Patient  = patient;
            this.B2bOptic = b2bOptic;
        }