Fix case typo on Consent.provision in R4

This commit is contained in:
Grahame Grieve 2024-09-18 14:07:29 +10:00
parent 69525144f3
commit 948f3411e2
6 changed files with 75 additions and 75 deletions

View File

@ -47,7 +47,7 @@ public class Consent30_40 {
tgt.setPolicyRule(new CodeableConcept(c)); tgt.setPolicyRule(new CodeableConcept(c));
} }
if (src.hasSecurityLabel() || src.hasPeriod() || src.hasActor() || src.hasAction() || src.hasPurpose() || src.hasDataPeriod() || src.hasData() || src.hasExcept()) { if (src.hasSecurityLabel() || src.hasPeriod() || src.hasActor() || src.hasAction() || src.hasPurpose() || src.hasDataPeriod() || src.hasData() || src.hasExcept()) {
org.hl7.fhir.r4.model.Consent.provisionComponent pc = new org.hl7.fhir.r4.model.Consent.provisionComponent(); org.hl7.fhir.r4.model.Consent.ProvisionComponent pc = new org.hl7.fhir.r4.model.Consent.ProvisionComponent();
if (src.hasPeriod()) if (src.hasPeriod())
pc.setPeriod(Period30_40.convertPeriod(src.getPeriod())); pc.setPeriod(Period30_40.convertPeriod(src.getPeriod()));
for (org.hl7.fhir.dstu3.model.Consent.ConsentActorComponent t : src.getActor()) for (org.hl7.fhir.dstu3.model.Consent.ConsentActorComponent t : src.getActor())
@ -104,7 +104,7 @@ public class Consent30_40 {
} }
} }
if (src.hasProvision()) { if (src.hasProvision()) {
org.hl7.fhir.r4.model.Consent.provisionComponent p = src.getProvision(); org.hl7.fhir.r4.model.Consent.ProvisionComponent p = src.getProvision();
if (p.hasPeriod()) if (p.hasPeriod())
tgt.setPeriod(Period30_40.convertPeriod(p.getPeriod())); tgt.setPeriod(Period30_40.convertPeriod(p.getPeriod()));
for (org.hl7.fhir.r4.model.Consent.provisionActorComponent t : p.getActor()) for (org.hl7.fhir.r4.model.Consent.provisionActorComponent t : p.getActor())
@ -117,7 +117,7 @@ public class Consent30_40 {
tgt.setDataPeriod(Period30_40.convertPeriod(p.getDataPeriod())); tgt.setDataPeriod(Period30_40.convertPeriod(p.getDataPeriod()));
for (org.hl7.fhir.r4.model.Consent.provisionDataComponent t : p.getData()) for (org.hl7.fhir.r4.model.Consent.provisionDataComponent t : p.getData())
tgt.addData(convertConsentDataComponent(t)); tgt.addData(convertConsentDataComponent(t));
for (org.hl7.fhir.r4.model.Consent.provisionComponent t : p.getProvision()) for (org.hl7.fhir.r4.model.Consent.ProvisionComponent t : p.getProvision())
tgt.addExcept(convertExceptComponent(t)); tgt.addExcept(convertExceptComponent(t));
} }
return tgt; return tgt;
@ -369,7 +369,7 @@ public class Consent30_40 {
return tgt; return tgt;
} }
static public org.hl7.fhir.dstu3.model.Consent.ExceptComponent convertExceptComponent(org.hl7.fhir.r4.model.Consent.provisionComponent src) throws FHIRException { static public org.hl7.fhir.dstu3.model.Consent.ExceptComponent convertExceptComponent(org.hl7.fhir.r4.model.Consent.ProvisionComponent src) throws FHIRException {
if (src == null) if (src == null)
return null; return null;
org.hl7.fhir.dstu3.model.Consent.ExceptComponent tgt = new org.hl7.fhir.dstu3.model.Consent.ExceptComponent(); org.hl7.fhir.dstu3.model.Consent.ExceptComponent tgt = new org.hl7.fhir.dstu3.model.Consent.ExceptComponent();
@ -393,10 +393,10 @@ public class Consent30_40 {
return tgt; return tgt;
} }
static public org.hl7.fhir.r4.model.Consent.provisionComponent convertExceptComponent(org.hl7.fhir.dstu3.model.Consent.ExceptComponent src) throws FHIRException { static public org.hl7.fhir.r4.model.Consent.ProvisionComponent convertExceptComponent(org.hl7.fhir.dstu3.model.Consent.ExceptComponent src) throws FHIRException {
if (src == null) if (src == null)
return null; return null;
org.hl7.fhir.r4.model.Consent.provisionComponent tgt = new org.hl7.fhir.r4.model.Consent.provisionComponent(); org.hl7.fhir.r4.model.Consent.ProvisionComponent tgt = new org.hl7.fhir.r4.model.Consent.ProvisionComponent();
ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt);
if (src.hasType()) if (src.hasType())
tgt.setTypeElement(convertConsentExceptType(src.getTypeElement())); tgt.setTypeElement(convertConsentExceptType(src.getTypeElement()));

View File

@ -220,7 +220,7 @@ public class Consent40_50 {
return tgt; return tgt;
} }
public static org.hl7.fhir.r5.model.Consent.ProvisionComponent convertprovisionComponent(org.hl7.fhir.r4.model.Consent.provisionComponent src) throws FHIRException { public static org.hl7.fhir.r5.model.Consent.ProvisionComponent convertprovisionComponent(org.hl7.fhir.r4.model.Consent.ProvisionComponent src) throws FHIRException {
if (src == null) if (src == null)
return null; return null;
org.hl7.fhir.r5.model.Consent.ProvisionComponent tgt = new org.hl7.fhir.r5.model.Consent.ProvisionComponent(); org.hl7.fhir.r5.model.Consent.ProvisionComponent tgt = new org.hl7.fhir.r5.model.Consent.ProvisionComponent();
@ -242,15 +242,15 @@ public class Consent40_50 {
tgt.setDataPeriod(Period40_50.convertPeriod(src.getDataPeriod())); tgt.setDataPeriod(Period40_50.convertPeriod(src.getDataPeriod()));
for (org.hl7.fhir.r4.model.Consent.provisionDataComponent t : src.getData()) for (org.hl7.fhir.r4.model.Consent.provisionDataComponent t : src.getData())
tgt.addData(convertprovisionDataComponent(t)); tgt.addData(convertprovisionDataComponent(t));
for (org.hl7.fhir.r4.model.Consent.provisionComponent t : src.getProvision()) for (org.hl7.fhir.r4.model.Consent.ProvisionComponent t : src.getProvision())
tgt.addProvision(convertprovisionComponent(t)); tgt.addProvision(convertprovisionComponent(t));
return tgt; return tgt;
} }
public static org.hl7.fhir.r4.model.Consent.provisionComponent convertprovisionComponent(org.hl7.fhir.r5.model.Consent.ProvisionComponent src) throws FHIRException { public static org.hl7.fhir.r4.model.Consent.ProvisionComponent convertprovisionComponent(org.hl7.fhir.r5.model.Consent.ProvisionComponent src) throws FHIRException {
if (src == null) if (src == null)
return null; return null;
org.hl7.fhir.r4.model.Consent.provisionComponent tgt = new org.hl7.fhir.r4.model.Consent.provisionComponent(); org.hl7.fhir.r4.model.Consent.ProvisionComponent tgt = new org.hl7.fhir.r4.model.Consent.ProvisionComponent();
ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt);
// if (src.hasType()) // if (src.hasType())
// tgt.setTypeElement(convertConsentProvisionType(src.getTypeElement())); // tgt.setTypeElement(convertConsentProvisionType(src.getTypeElement()));

View File

@ -8400,15 +8400,15 @@ public class JsonParser extends JsonParserBase {
parseElementProperties(getJObject(json, "_verificationDate"), res.getVerificationDateElement()); parseElementProperties(getJObject(json, "_verificationDate"), res.getVerificationDateElement());
} }
protected Consent.provisionComponent parseConsentprovisionComponent(JsonObject json, Consent owner) protected Consent.ProvisionComponent parseConsentprovisionComponent(JsonObject json, Consent owner)
throws IOException, FHIRFormatError { throws IOException, FHIRFormatError {
Consent.provisionComponent res = new Consent.provisionComponent(); Consent.ProvisionComponent res = new Consent.ProvisionComponent();
parseConsentprovisionComponentProperties(json, owner, res); parseConsentprovisionComponentProperties(json, owner, res);
return res; return res;
} }
protected void parseConsentprovisionComponentProperties(JsonObject json, Consent owner, protected void parseConsentprovisionComponentProperties(JsonObject json, Consent owner,
Consent.provisionComponent res) throws IOException, FHIRFormatError { Consent.ProvisionComponent res) throws IOException, FHIRFormatError {
parseBackboneElementProperties(json, res); parseBackboneElementProperties(json, res);
if (json.has("type")) if (json.has("type"))
res.setTypeElement(parseEnumeration(json.get("type").getAsString(), Consent.ConsentProvisionType.NULL, res.setTypeElement(parseEnumeration(json.get("type").getAsString(), Consent.ConsentProvisionType.NULL,
@ -41383,7 +41383,7 @@ public class JsonParser extends JsonParserBase {
} }
} }
protected void composeConsentprovisionComponent(String name, Consent.provisionComponent element) throws IOException { protected void composeConsentprovisionComponent(String name, Consent.ProvisionComponent element) throws IOException {
if (element != null) { if (element != null) {
open(name); open(name);
composeConsentprovisionComponentInner(element); composeConsentprovisionComponentInner(element);
@ -41391,7 +41391,7 @@ public class JsonParser extends JsonParserBase {
} }
} }
protected void composeConsentprovisionComponentInner(Consent.provisionComponent element) throws IOException { protected void composeConsentprovisionComponentInner(Consent.ProvisionComponent element) throws IOException {
composeBackbone(element); composeBackbone(element);
if (element.hasTypeElement()) { if (element.hasTypeElement()) {
composeEnumerationCore("type", element.getTypeElement(), new Consent.ConsentProvisionTypeEnumFactory(), false); composeEnumerationCore("type", element.getTypeElement(), new Consent.ConsentProvisionTypeEnumFactory(), false);
@ -41454,7 +41454,7 @@ public class JsonParser extends JsonParserBase {
; ;
if (element.hasProvision()) { if (element.hasProvision()) {
openArray("provision"); openArray("provision");
for (Consent.provisionComponent e : element.getProvision()) for (Consent.ProvisionComponent e : element.getProvision())
composeConsentprovisionComponent(null, e); composeConsentprovisionComponent(null, e);
closeArray(); closeArray();
} }

View File

@ -4917,7 +4917,7 @@ public class RdfParser extends RdfParserBase {
} }
protected void composeConsentprovisionComponent(Complex parent, String parentType, String name, protected void composeConsentprovisionComponent(Complex parent, String parentType, String name,
Consent.provisionComponent element, int index) { Consent.ProvisionComponent element, int index) {
if (element == null) if (element == null)
return; return;
Complex t; Complex t;

View File

@ -6924,9 +6924,9 @@ public class XmlParser extends XmlParserBase {
return true; return true;
} }
protected Consent.provisionComponent parseConsentprovisionComponent(XmlPullParser xpp, Consent owner) protected Consent.ProvisionComponent parseConsentprovisionComponent(XmlPullParser xpp, Consent owner)
throws XmlPullParserException, IOException, FHIRFormatError { throws XmlPullParserException, IOException, FHIRFormatError {
Consent.provisionComponent res = new Consent.provisionComponent(); Consent.ProvisionComponent res = new Consent.ProvisionComponent();
parseBackboneAttributes(xpp, res); parseBackboneAttributes(xpp, res);
next(xpp); next(xpp);
int eventType = nextNoWhitespace(xpp); int eventType = nextNoWhitespace(xpp);
@ -6941,7 +6941,7 @@ public class XmlParser extends XmlParserBase {
} }
protected boolean parseConsentprovisionComponentContent(int eventType, XmlPullParser xpp, Consent owner, protected boolean parseConsentprovisionComponentContent(int eventType, XmlPullParser xpp, Consent owner,
Consent.provisionComponent res) throws XmlPullParserException, IOException, FHIRFormatError { Consent.ProvisionComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) {
res.setTypeElement( res.setTypeElement(
parseEnumeration(xpp, Consent.ConsentProvisionType.NULL, new Consent.ConsentProvisionTypeEnumFactory())); parseEnumeration(xpp, Consent.ConsentProvisionType.NULL, new Consent.ConsentProvisionTypeEnumFactory()));
@ -34008,7 +34008,7 @@ public class XmlParser extends XmlParserBase {
} }
} }
protected void composeConsentprovisionComponent(String name, Consent.provisionComponent element) throws IOException { protected void composeConsentprovisionComponent(String name, Consent.ProvisionComponent element) throws IOException {
if (element != null) { if (element != null) {
composeElementAttributes(element); composeElementAttributes(element);
xml.enter(FHIR_NS, name); xml.enter(FHIR_NS, name);
@ -34018,7 +34018,7 @@ public class XmlParser extends XmlParserBase {
} }
} }
protected void composeConsentprovisionComponentElements(Consent.provisionComponent element) throws IOException { protected void composeConsentprovisionComponentElements(Consent.ProvisionComponent element) throws IOException {
composeBackboneElementElements(element); composeBackboneElementElements(element);
if (element.hasTypeElement()) if (element.hasTypeElement())
composeEnumeration("type", element.getTypeElement(), new Consent.ConsentProvisionTypeEnumFactory()); composeEnumeration("type", element.getTypeElement(), new Consent.ConsentProvisionTypeEnumFactory());
@ -34057,7 +34057,7 @@ public class XmlParser extends XmlParserBase {
composeConsentprovisionDataComponent("data", e); composeConsentprovisionDataComponent("data", e);
} }
if (element.hasProvision()) { if (element.hasProvision()) {
for (Consent.provisionComponent e : element.getProvision()) for (Consent.ProvisionComponent e : element.getProvision())
composeConsentprovisionComponent("provision", e); composeConsentprovisionComponent("provision", e);
} }
} }

View File

@ -1221,7 +1221,7 @@ public class Consent extends DomainResource {
} }
@Block() @Block()
public static class provisionComponent extends BackboneElement implements IBaseBackboneElement { public static class ProvisionComponent extends BackboneElement implements IBaseBackboneElement {
/** /**
* Action to take - permit or deny - when the rule conditions are met. Not * Action to take - permit or deny - when the rule conditions are met. Not
* permitted in root rule, required in all nested rules. * permitted in root rule, required in all nested rules.
@ -1314,16 +1314,16 @@ public class Consent extends DomainResource {
* Rules which provide exceptions to the base rule or subrules. * Rules which provide exceptions to the base rule or subrules.
*/ */
@Child(name = "provision", type = { @Child(name = "provision", type = {
provisionComponent.class }, order = 11, min = 0, max = Child.MAX_UNLIMITED, modifier = false, summary = false) ProvisionComponent.class }, order = 11, min = 0, max = Child.MAX_UNLIMITED, modifier = false, summary = false)
@Description(shortDefinition = "Nested Exception Rules", formalDefinition = "Rules which provide exceptions to the base rule or subrules.") @Description(shortDefinition = "Nested Exception Rules", formalDefinition = "Rules which provide exceptions to the base rule or subrules.")
protected List<provisionComponent> provision; protected List<ProvisionComponent> provision;
private static final long serialVersionUID = -1280172451L; private static final long serialVersionUID = -1280172451L;
/** /**
* Constructor * Constructor
*/ */
public provisionComponent() { public ProvisionComponent() {
super(); super();
} }
@ -1357,7 +1357,7 @@ public class Consent extends DomainResource {
* extensions. The accessor "getType" gives direct access to the * extensions. The accessor "getType" gives direct access to the
* value * value
*/ */
public provisionComponent setTypeElement(Enumeration<ConsentProvisionType> value) { public ProvisionComponent setTypeElement(Enumeration<ConsentProvisionType> value) {
this.type = value; this.type = value;
return this; return this;
} }
@ -1374,7 +1374,7 @@ public class Consent extends DomainResource {
* @param value Action to take - permit or deny - when the rule conditions are * @param value Action to take - permit or deny - when the rule conditions are
* met. Not permitted in root rule, required in all nested rules. * met. Not permitted in root rule, required in all nested rules.
*/ */
public provisionComponent setType(ConsentProvisionType value) { public ProvisionComponent setType(ConsentProvisionType value) {
if (value == null) if (value == null)
this.type = null; this.type = null;
else { else {
@ -1404,7 +1404,7 @@ public class Consent extends DomainResource {
/** /**
* @param value {@link #period} (The timeframe in this rule is valid.) * @param value {@link #period} (The timeframe in this rule is valid.)
*/ */
public provisionComponent setPeriod(Period value) { public ProvisionComponent setPeriod(Period value) {
this.period = value; this.period = value;
return this; return this;
} }
@ -1423,7 +1423,7 @@ public class Consent extends DomainResource {
/** /**
* @return Returns a reference to <code>this</code> for easy method chaining * @return Returns a reference to <code>this</code> for easy method chaining
*/ */
public provisionComponent setActor(List<provisionActorComponent> theActor) { public ProvisionComponent setActor(List<provisionActorComponent> theActor) {
this.actor = theActor; this.actor = theActor;
return this; return this;
} }
@ -1445,7 +1445,7 @@ public class Consent extends DomainResource {
return t; return t;
} }
public provisionComponent addActor(provisionActorComponent t) { // 3 public ProvisionComponent addActor(provisionActorComponent t) { // 3
if (t == null) if (t == null)
return this; return this;
if (this.actor == null) if (this.actor == null)
@ -1477,7 +1477,7 @@ public class Consent extends DomainResource {
/** /**
* @return Returns a reference to <code>this</code> for easy method chaining * @return Returns a reference to <code>this</code> for easy method chaining
*/ */
public provisionComponent setAction(List<CodeableConcept> theAction) { public ProvisionComponent setAction(List<CodeableConcept> theAction) {
this.action = theAction; this.action = theAction;
return this; return this;
} }
@ -1499,7 +1499,7 @@ public class Consent extends DomainResource {
return t; return t;
} }
public provisionComponent addAction(CodeableConcept t) { // 3 public ProvisionComponent addAction(CodeableConcept t) { // 3
if (t == null) if (t == null)
return this; return this;
if (this.action == null) if (this.action == null)
@ -1533,7 +1533,7 @@ public class Consent extends DomainResource {
/** /**
* @return Returns a reference to <code>this</code> for easy method chaining * @return Returns a reference to <code>this</code> for easy method chaining
*/ */
public provisionComponent setSecurityLabel(List<Coding> theSecurityLabel) { public ProvisionComponent setSecurityLabel(List<Coding> theSecurityLabel) {
this.securityLabel = theSecurityLabel; this.securityLabel = theSecurityLabel;
return this; return this;
} }
@ -1555,7 +1555,7 @@ public class Consent extends DomainResource {
return t; return t;
} }
public provisionComponent addSecurityLabel(Coding t) { // 3 public ProvisionComponent addSecurityLabel(Coding t) { // 3
if (t == null) if (t == null)
return this; return this;
if (this.securityLabel == null) if (this.securityLabel == null)
@ -1589,7 +1589,7 @@ public class Consent extends DomainResource {
/** /**
* @return Returns a reference to <code>this</code> for easy method chaining * @return Returns a reference to <code>this</code> for easy method chaining
*/ */
public provisionComponent setPurpose(List<Coding> thePurpose) { public ProvisionComponent setPurpose(List<Coding> thePurpose) {
this.purpose = thePurpose; this.purpose = thePurpose;
return this; return this;
} }
@ -1611,7 +1611,7 @@ public class Consent extends DomainResource {
return t; return t;
} }
public provisionComponent addPurpose(Coding t) { // 3 public ProvisionComponent addPurpose(Coding t) { // 3
if (t == null) if (t == null)
return this; return this;
if (this.purpose == null) if (this.purpose == null)
@ -1646,7 +1646,7 @@ public class Consent extends DomainResource {
/** /**
* @return Returns a reference to <code>this</code> for easy method chaining * @return Returns a reference to <code>this</code> for easy method chaining
*/ */
public provisionComponent setClass_(List<Coding> theClass_) { public ProvisionComponent setClass_(List<Coding> theClass_) {
this.class_ = theClass_; this.class_ = theClass_;
return this; return this;
} }
@ -1668,7 +1668,7 @@ public class Consent extends DomainResource {
return t; return t;
} }
public provisionComponent addClass_(Coding t) { // 3 public ProvisionComponent addClass_(Coding t) { // 3
if (t == null) if (t == null)
return this; return this;
if (this.class_ == null) if (this.class_ == null)
@ -1701,7 +1701,7 @@ public class Consent extends DomainResource {
/** /**
* @return Returns a reference to <code>this</code> for easy method chaining * @return Returns a reference to <code>this</code> for easy method chaining
*/ */
public provisionComponent setCode(List<CodeableConcept> theCode) { public ProvisionComponent setCode(List<CodeableConcept> theCode) {
this.code = theCode; this.code = theCode;
return this; return this;
} }
@ -1723,7 +1723,7 @@ public class Consent extends DomainResource {
return t; return t;
} }
public provisionComponent addCode(CodeableConcept t) { // 3 public ProvisionComponent addCode(CodeableConcept t) { // 3
if (t == null) if (t == null)
return this; return this;
if (this.code == null) if (this.code == null)
@ -1764,7 +1764,7 @@ public class Consent extends DomainResource {
* @param value {@link #dataPeriod} (Clinical or Operational Relevant period of * @param value {@link #dataPeriod} (Clinical or Operational Relevant period of
* time that bounds the data controlled by this rule.) * time that bounds the data controlled by this rule.)
*/ */
public provisionComponent setDataPeriod(Period value) { public ProvisionComponent setDataPeriod(Period value) {
this.dataPeriod = value; this.dataPeriod = value;
return this; return this;
} }
@ -1782,7 +1782,7 @@ public class Consent extends DomainResource {
/** /**
* @return Returns a reference to <code>this</code> for easy method chaining * @return Returns a reference to <code>this</code> for easy method chaining
*/ */
public provisionComponent setData(List<provisionDataComponent> theData) { public ProvisionComponent setData(List<provisionDataComponent> theData) {
this.data = theData; this.data = theData;
return this; return this;
} }
@ -1804,7 +1804,7 @@ public class Consent extends DomainResource {
return t; return t;
} }
public provisionComponent addData(provisionDataComponent t) { // 3 public ProvisionComponent addData(provisionDataComponent t) { // 3
if (t == null) if (t == null)
return this; return this;
if (this.data == null) if (this.data == null)
@ -1828,16 +1828,16 @@ public class Consent extends DomainResource {
* @return {@link #provision} (Rules which provide exceptions to the base rule * @return {@link #provision} (Rules which provide exceptions to the base rule
* or subrules.) * or subrules.)
*/ */
public List<provisionComponent> getProvision() { public List<ProvisionComponent> getProvision() {
if (this.provision == null) if (this.provision == null)
this.provision = new ArrayList<provisionComponent>(); this.provision = new ArrayList<ProvisionComponent>();
return this.provision; return this.provision;
} }
/** /**
* @return Returns a reference to <code>this</code> for easy method chaining * @return Returns a reference to <code>this</code> for easy method chaining
*/ */
public provisionComponent setProvision(List<provisionComponent> theProvision) { public ProvisionComponent setProvision(List<ProvisionComponent> theProvision) {
this.provision = theProvision; this.provision = theProvision;
return this; return this;
} }
@ -1845,25 +1845,25 @@ public class Consent extends DomainResource {
public boolean hasProvision() { public boolean hasProvision() {
if (this.provision == null) if (this.provision == null)
return false; return false;
for (provisionComponent item : this.provision) for (ProvisionComponent item : this.provision)
if (!item.isEmpty()) if (!item.isEmpty())
return true; return true;
return false; return false;
} }
public provisionComponent addProvision() { // 3 public ProvisionComponent addProvision() { // 3
provisionComponent t = new provisionComponent(); ProvisionComponent t = new ProvisionComponent();
if (this.provision == null) if (this.provision == null)
this.provision = new ArrayList<provisionComponent>(); this.provision = new ArrayList<ProvisionComponent>();
this.provision.add(t); this.provision.add(t);
return t; return t;
} }
public provisionComponent addProvision(provisionComponent t) { // 3 public ProvisionComponent addProvision(ProvisionComponent t) { // 3
if (t == null) if (t == null)
return this; return this;
if (this.provision == null) if (this.provision == null)
this.provision = new ArrayList<provisionComponent>(); this.provision = new ArrayList<ProvisionComponent>();
this.provision.add(t); this.provision.add(t);
return this; return this;
} }
@ -1872,7 +1872,7 @@ public class Consent extends DomainResource {
* @return The first repetition of repeating field {@link #provision}, creating * @return The first repetition of repeating field {@link #provision}, creating
* it if it does not already exist * it if it does not already exist
*/ */
public provisionComponent getProvisionFirstRep() { public ProvisionComponent getProvisionFirstRep() {
if (getProvision().isEmpty()) { if (getProvision().isEmpty()) {
addProvision(); addProvision();
} }
@ -2027,7 +2027,7 @@ public class Consent extends DomainResource {
this.getData().add((provisionDataComponent) value); // provisionDataComponent this.getData().add((provisionDataComponent) value); // provisionDataComponent
return value; return value;
case -547120939: // provision case -547120939: // provision
this.getProvision().add((provisionComponent) value); // provisionComponent this.getProvision().add((ProvisionComponent) value); // provisionComponent
return value; return value;
default: default:
return super.setProperty(hash, name, value); return super.setProperty(hash, name, value);
@ -2059,7 +2059,7 @@ public class Consent extends DomainResource {
} else if (name.equals("data")) { } else if (name.equals("data")) {
this.getData().add((provisionDataComponent) value); this.getData().add((provisionDataComponent) value);
} else if (name.equals("provision")) { } else if (name.equals("provision")) {
this.getProvision().add((provisionComponent) value); this.getProvision().add((ProvisionComponent) value);
} else } else
return super.setProperty(name, value); return super.setProperty(name, value);
return value; return value;
@ -2088,7 +2088,7 @@ public class Consent extends DomainResource {
} else if (name.equals("data")) { } else if (name.equals("data")) {
this.getData().remove((provisionDataComponent) value); this.getData().remove((provisionDataComponent) value);
} else if (name.equals("provision")) { } else if (name.equals("provision")) {
this.getProvision().remove((provisionComponent) value); this.getProvision().remove((ProvisionComponent) value);
} else } else
super.removeChild(name, value); super.removeChild(name, value);
@ -2186,13 +2186,13 @@ public class Consent extends DomainResource {
return super.addChild(name); return super.addChild(name);
} }
public provisionComponent copy() { public ProvisionComponent copy() {
provisionComponent dst = new provisionComponent(); ProvisionComponent dst = new ProvisionComponent();
copyValues(dst); copyValues(dst);
return dst; return dst;
} }
public void copyValues(provisionComponent dst) { public void copyValues(ProvisionComponent dst) {
super.copyValues(dst); super.copyValues(dst);
dst.type = type == null ? null : type.copy(); dst.type = type == null ? null : type.copy();
dst.period = period == null ? null : period.copy(); dst.period = period == null ? null : period.copy();
@ -2240,8 +2240,8 @@ public class Consent extends DomainResource {
} }
; ;
if (provision != null) { if (provision != null) {
dst.provision = new ArrayList<provisionComponent>(); dst.provision = new ArrayList<ProvisionComponent>();
for (provisionComponent i : provision) for (ProvisionComponent i : provision)
dst.provision.add(i.copy()); dst.provision.add(i.copy());
} }
; ;
@ -2251,9 +2251,9 @@ public class Consent extends DomainResource {
public boolean equalsDeep(Base other_) { public boolean equalsDeep(Base other_) {
if (!super.equalsDeep(other_)) if (!super.equalsDeep(other_))
return false; return false;
if (!(other_ instanceof provisionComponent)) if (!(other_ instanceof ProvisionComponent))
return false; return false;
provisionComponent o = (provisionComponent) other_; ProvisionComponent o = (ProvisionComponent) other_;
return compareDeep(type, o.type, true) && compareDeep(period, o.period, true) && compareDeep(actor, o.actor, true) return compareDeep(type, o.type, true) && compareDeep(period, o.period, true) && compareDeep(actor, o.actor, true)
&& compareDeep(action, o.action, true) && compareDeep(securityLabel, o.securityLabel, true) && compareDeep(action, o.action, true) && compareDeep(securityLabel, o.securityLabel, true)
&& compareDeep(purpose, o.purpose, true) && compareDeep(class_, o.class_, true) && compareDeep(purpose, o.purpose, true) && compareDeep(class_, o.class_, true)
@ -2265,9 +2265,9 @@ public class Consent extends DomainResource {
public boolean equalsShallow(Base other_) { public boolean equalsShallow(Base other_) {
if (!super.equalsShallow(other_)) if (!super.equalsShallow(other_))
return false; return false;
if (!(other_ instanceof provisionComponent)) if (!(other_ instanceof ProvisionComponent))
return false; return false;
provisionComponent o = (provisionComponent) other_; ProvisionComponent o = (ProvisionComponent) other_;
return compareValues(type, o.type, true); return compareValues(type, o.type, true);
} }
@ -3002,7 +3002,7 @@ public class Consent extends DomainResource {
*/ */
@Child(name = "provision", type = {}, order = 12, min = 0, max = 1, modifier = false, summary = true) @Child(name = "provision", type = {}, order = 12, min = 0, max = 1, modifier = false, summary = true)
@Description(shortDefinition = "Constraints to the base Consent.policyRule", formalDefinition = "An exception to the base policy of this consent. An exception can be an addition or removal of access permissions.") @Description(shortDefinition = "Constraints to the base Consent.policyRule", formalDefinition = "An exception to the base policy of this consent. An exception can be an addition or removal of access permissions.")
protected provisionComponent provision; protected ProvisionComponent provision;
private static final long serialVersionUID = 206528051L; private static final long serialVersionUID = 206528051L;
@ -3669,12 +3669,12 @@ public class Consent extends DomainResource {
* @return {@link #provision} (An exception to the base policy of this consent. * @return {@link #provision} (An exception to the base policy of this consent.
* An exception can be an addition or removal of access permissions.) * An exception can be an addition or removal of access permissions.)
*/ */
public provisionComponent getProvision() { public ProvisionComponent getProvision() {
if (this.provision == null) if (this.provision == null)
if (Configuration.errorOnAutoCreate()) if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Consent.provision"); throw new Error("Attempt to auto-create Consent.provision");
else if (Configuration.doAutoCreate()) else if (Configuration.doAutoCreate())
this.provision = new provisionComponent(); // cc this.provision = new ProvisionComponent(); // cc
return this.provision; return this.provision;
} }
@ -3687,7 +3687,7 @@ public class Consent extends DomainResource {
* consent. An exception can be an addition or removal of access * consent. An exception can be an addition or removal of access
* permissions.) * permissions.)
*/ */
public Consent setProvision(provisionComponent value) { public Consent setProvision(ProvisionComponent value) {
this.provision = value; this.provision = value;
return this; return this;
} }
@ -3883,7 +3883,7 @@ public class Consent extends DomainResource {
this.getVerification().add((ConsentVerificationComponent) value); // ConsentVerificationComponent this.getVerification().add((ConsentVerificationComponent) value); // ConsentVerificationComponent
return value; return value;
case -547120939: // provision case -547120939: // provision
this.provision = (provisionComponent) value; // provisionComponent this.provision = (ProvisionComponent) value; // provisionComponent
return value; return value;
default: default:
return super.setProperty(hash, name, value); return super.setProperty(hash, name, value);
@ -3919,7 +3919,7 @@ public class Consent extends DomainResource {
} else if (name.equals("verification")) { } else if (name.equals("verification")) {
this.getVerification().add((ConsentVerificationComponent) value); this.getVerification().add((ConsentVerificationComponent) value);
} else if (name.equals("provision")) { } else if (name.equals("provision")) {
this.provision = (provisionComponent) value; // provisionComponent this.provision = (ProvisionComponent) value; // provisionComponent
} else } else
return super.setProperty(name, value); return super.setProperty(name, value);
return value; return value;
@ -3952,7 +3952,7 @@ public class Consent extends DomainResource {
} else if (name.equals("verification")) { } else if (name.equals("verification")) {
this.getVerification().remove((ConsentVerificationComponent) value); this.getVerification().remove((ConsentVerificationComponent) value);
} else if (name.equals("provision")) { } else if (name.equals("provision")) {
this.provision = (provisionComponent) value; // provisionComponent this.provision = (ProvisionComponent) value; // provisionComponent
} else } else
super.removeChild(name, value); super.removeChild(name, value);
@ -4064,7 +4064,7 @@ public class Consent extends DomainResource {
} else if (name.equals("verification")) { } else if (name.equals("verification")) {
return addVerification(); return addVerification();
} else if (name.equals("provision")) { } else if (name.equals("provision")) {
this.provision = new provisionComponent(); this.provision = new ProvisionComponent();
return this.provision; return this.provision;
} else } else
return super.addChild(name); return super.addChild(name);