From 14b28fd436afa79d0802af7f32fd4bc3212bc21f Mon Sep 17 00:00:00 2001 From: James Ren Date: Thu, 17 Nov 2016 13:49:00 -0500 Subject: [PATCH] Update MoneyDt.java Add Constructors --- .../fhir/model/dstu2/composite/MoneyDt.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/hapi-fhir-structures-dstu2/src/main/java/ca/uhn/fhir/model/dstu2/composite/MoneyDt.java b/hapi-fhir-structures-dstu2/src/main/java/ca/uhn/fhir/model/dstu2/composite/MoneyDt.java index 5ea69260d74..3be11fb3f8e 100644 --- a/hapi-fhir-structures-dstu2/src/main/java/ca/uhn/fhir/model/dstu2/composite/MoneyDt.java +++ b/hapi-fhir-structures-dstu2/src/main/java/ca/uhn/fhir/model/dstu2/composite/MoneyDt.java @@ -26,4 +26,29 @@ import ca.uhn.fhir.model.dstu2.composite.QuantityDt; @DatatypeDef(name="Money", profileOf=QuantityDt.class) public class MoneyDt extends QuantityDt { + private static final long serialVersionUID = 1L; + + /** + * Constructor + */ + public MoneyDt() { + // nothing + } + + /** + * Constructor + */ + @SimpleSetter + public MoneyDt(@SimpleSetter.Parameter(name = "theValue") double theValue) { + setValue(theValue); + } + + /** + * Constructor + */ + @SimpleSetter + public MoneyDt(@SimpleSetter.Parameter(name = "theValue") long theValue) { + setValue(theValue); + } + }