001package ca.uhn.fhir.model.dstu2.composite; 002 003import ca.uhn.fhir.model.api.annotation.DatatypeDef; 004import ca.uhn.fhir.model.api.annotation.SimpleSetter; 005 006/* 007 * #%L 008 * HAPI FHIR Structures - DSTU2 (FHIR v1.0.0) 009 * %% 010 * Copyright (C) 2014 - 2020 University Health Network 011 * %% 012 * Licensed under the Apache License, Version 2.0 (the "License"); 013 * you may not use this file except in compliance with the License. 014 * You may obtain a copy of the License at 015 * 016 * http://www.apache.org/licenses/LICENSE-2.0 017 * 018 * Unless required by applicable law or agreed to in writing, software 019 * distributed under the License is distributed on an "AS IS" BASIS, 020 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 021 * See the License for the specific language governing permissions and 022 * limitations under the License. 023 * #L% 024 */ 025 026@DatatypeDef(name="Money", profileOf=QuantityDt.class) 027public class MoneyDt extends QuantityDt { 028 029 private static final long serialVersionUID = 1L; 030 031 /** 032 * Constructor 033 */ 034 public MoneyDt() { 035 // nothing 036 } 037 038 /** 039 * Constructor 040 */ 041 @SimpleSetter 042 public MoneyDt(@SimpleSetter.Parameter(name = "theValue") double theValue) { 043 setValue(theValue); 044 } 045 046 /** 047 * Constructor 048 */ 049 @SimpleSetter 050 public MoneyDt(@SimpleSetter.Parameter(name = "theValue") long theValue) { 051 setValue(theValue); 052 } 053 054}