Merge pull request #1649 from hapifhir/do-20240606-fix-classname-typo

Fix case typo in Consent.ProvisionComponent
This commit is contained in:
Grahame Grieve 2024-09-14 07:27:42 +08:00 committed by GitHub
commit 0c7e6ce9ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 71 additions and 69 deletions

View File

@ -13,6 +13,7 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Date
import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CodeableConcept;
import org.hl7.fhir.r4.model.Consent;
import org.hl7.fhir.r4.model.Identifier;
public class Consent30_40 {
@ -47,7 +48,7 @@ public class Consent30_40 {
tgt.setPolicyRule(new CodeableConcept(c));
}
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();
Consent.ProvisionComponent pc = new Consent.ProvisionComponent();
if (src.hasPeriod())
pc.setPeriod(Period30_40.convertPeriod(src.getPeriod()));
for (org.hl7.fhir.dstu3.model.Consent.ConsentActorComponent t : src.getActor())
@ -104,7 +105,7 @@ public class Consent30_40 {
}
}
if (src.hasProvision()) {
org.hl7.fhir.r4.model.Consent.provisionComponent p = src.getProvision();
Consent.ProvisionComponent p = src.getProvision();
if (p.hasPeriod())
tgt.setPeriod(Period30_40.convertPeriod(p.getPeriod()));
for (org.hl7.fhir.r4.model.Consent.provisionActorComponent t : p.getActor())
@ -117,7 +118,7 @@ public class Consent30_40 {
tgt.setDataPeriod(Period30_40.convertPeriod(p.getDataPeriod()));
for (org.hl7.fhir.r4.model.Consent.provisionDataComponent t : p.getData())
tgt.addData(convertConsentDataComponent(t));
for (org.hl7.fhir.r4.model.Consent.provisionComponent t : p.getProvision())
for (Consent.ProvisionComponent t : p.getProvision())
tgt.addExcept(convertExceptComponent(t));
}
return tgt;
@ -369,7 +370,7 @@ public class Consent30_40 {
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(Consent.ProvisionComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.dstu3.model.Consent.ExceptComponent tgt = new org.hl7.fhir.dstu3.model.Consent.ExceptComponent();
@ -393,10 +394,10 @@ public class Consent30_40 {
return tgt;
}
static public org.hl7.fhir.r4.model.Consent.provisionComponent convertExceptComponent(org.hl7.fhir.dstu3.model.Consent.ExceptComponent src) throws FHIRException {
static public Consent.ProvisionComponent convertExceptComponent(org.hl7.fhir.dstu3.model.Consent.ExceptComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.Consent.provisionComponent tgt = new org.hl7.fhir.r4.model.Consent.provisionComponent();
Consent.ProvisionComponent tgt = new Consent.ProvisionComponent();
ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt);
if (src.hasType())
tgt.setTypeElement(convertConsentExceptType(src.getTypeElement()));

View File

@ -10,6 +10,7 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40
import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50;
import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.Consent;
/*
Copyright (c) 2011+, HL7, Inc.
@ -220,7 +221,7 @@ public class Consent40_50 {
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(Consent.ProvisionComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.Consent.ProvisionComponent tgt = new org.hl7.fhir.r5.model.Consent.ProvisionComponent();
@ -242,15 +243,15 @@ public class Consent40_50 {
tgt.setDataPeriod(Period40_50.convertPeriod(src.getDataPeriod()));
for (org.hl7.fhir.r4.model.Consent.provisionDataComponent t : src.getData())
tgt.addData(convertprovisionDataComponent(t));
for (org.hl7.fhir.r4.model.Consent.provisionComponent t : src.getProvision())
for (Consent.ProvisionComponent t : src.getProvision())
tgt.addProvision(convertprovisionComponent(t));
return tgt;
}
public static org.hl7.fhir.r4.model.Consent.provisionComponent convertprovisionComponent(org.hl7.fhir.r5.model.Consent.ProvisionComponent src) throws FHIRException {
public static Consent.ProvisionComponent convertprovisionComponent(org.hl7.fhir.r5.model.Consent.ProvisionComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.Consent.provisionComponent tgt = new org.hl7.fhir.r4.model.Consent.provisionComponent();
Consent.ProvisionComponent tgt = new Consent.ProvisionComponent();
ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt);
// if (src.hasType())
// tgt.setTypeElement(convertConsentProvisionType(src.getTypeElement()));

View File

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

View File

@ -6924,9 +6924,9 @@ public class XmlParser extends XmlParserBase {
return true;
}
protected Consent.provisionComponent parseConsentprovisionComponent(XmlPullParser xpp, Consent owner)
protected Consent.ProvisionComponent parseConsentprovisionComponent(XmlPullParser xpp, Consent owner)
throws XmlPullParserException, IOException, FHIRFormatError {
Consent.provisionComponent res = new Consent.provisionComponent();
Consent.ProvisionComponent res = new Consent.ProvisionComponent();
parseBackboneAttributes(xpp, res);
next(xpp);
int eventType = nextNoWhitespace(xpp);
@ -6941,7 +6941,7 @@ public class XmlParser extends XmlParserBase {
}
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")) {
res.setTypeElement(
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) {
composeElementAttributes(element);
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);
if (element.hasTypeElement())
composeEnumeration("type", element.getTypeElement(), new Consent.ConsentProvisionTypeEnumFactory());
@ -34057,7 +34057,7 @@ public class XmlParser extends XmlParserBase {
composeConsentprovisionDataComponent("data", e);
}
if (element.hasProvision()) {
for (Consent.provisionComponent e : element.getProvision())
for (Consent.ProvisionComponent e : element.getProvision())
composeConsentprovisionComponent("provision", e);
}
}

View File

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