/** * @return {@link #testScript} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Ideally this is an absolute URL that is used to identify the version-specific TestScript that was executed, matching the `TestScript.url`.) */ public TestScript getTestScriptTarget() { if (this.testScriptTarget == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create TestReport.testScript"); else if (Configuration.doAutoCreate()) this.testScriptTarget = new TestScript(); // aa return this.testScriptTarget; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 116079: return getUrlElement(); case -1618432855: return getIdentifier(); case 351608024: return getVersionElement(); case 3373707: return getNameElement(); case 110371416: return getTitleElement(); case -892481550: return getStatusElement(); case -404562712: return getExperimentalElement(); case 3076014: return getDateElement(); case 1447404028: return getPublisherElement(); case 951526432: return addContact(); case -1724546052: return getDescriptionElement(); case -669707736: return addUseContext(); case -507075711: return addJurisdiction(); case -220463842: return getPurposeElement(); case 1522889671: return getCopyrightElement(); case -1008619738: return addOrigin(); case -1429847026: return addDestination(); case -450004177: return getMetadata(); case -843449847: return addFixture(); case -309425751: return addProfile(); case -1249586564: return addVariable(); case 109329021: return getSetup(); case 3556498: return addTest(); case -1663474172: return getTeardown(); default: return super.makeProperty(hash, name); } }
switch (hash) { case 116079: // url this.url = castToUri(value); // UriType return value; case -1618432855: // identifier this.identifier = castToIdentifier(value); // Identifier return value; case 351608024: // version this.version = castToString(value); // StringType return value; case 3373707: // name this.name = castToString(value); // StringType return value; case 110371416: // title this.title = castToString(value); // StringType return value; case -892481550: // status value = new PublicationStatusEnumFactory().fromType(castToCode(value)); this.status = (Enumeration) value; // Enumeration<PublicationStatus> return value; case -404562712: // experimental this.experimental = castToBoolean(value); // BooleanType return value; case 3076014: // date this.date = castToDateTime(value); // DateTimeType return value; case 1447404028: // publisher this.publisher = castToString(value); // StringType return value;
/** * @return The first repetition of repeating field {@link #variable}, creating it if it does not already exist */ public TestScriptVariableComponent getVariableFirstRep() { if (getVariable().isEmpty()) { addVariable(); } return getVariable().get(0); }
/** * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist */ public UsageContext getUseContextFirstRep() { if (getUseContext().isEmpty()) { addUseContext(); } return getUseContext().get(0); }
/** * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist */ public CodeableConcept getJurisdictionFirstRep() { if (getJurisdiction().isEmpty()) { addJurisdiction(); } return getJurisdiction().get(0); }
public org.hl7.fhir.instance.model.TestScript convertTestScript(org.hl7.fhir.r4.model.TestScript src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.TestScript tgt = new org.hl7.fhir.instance.model.TestScript(); copyDomainResource(src, tgt); tgt.setUrl(src.getUrl()); tgt.setVersion(src.getVersion()); tgt.setName(src.getName()); tgt.setStatus(convertConformanceResourceStatus(src.getStatus())); tgt.setIdentifier(convertIdentifier(src.getIdentifier())); if (src.hasExperimental()) tgt.setExperimental(src.getExperimental()); tgt.setPublisher(src.getPublisher()); for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertTestScriptContactComponent(t)); if (src.hasDate()) tgt.setDate(src.getDate()); tgt.setDescription(src.getDescription()); for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept()) tgt.addUseContext(convertCodeableConcept(t.getValueCodeableConcept())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(convertCodeableConcept(t)); tgt.setRequirements(src.getPurpose()); tgt.setCopyright(src.getCopyright()); tgt.setMetadata(convertTestScriptMetadataComponent(src.getMetadata())); for (org.hl7.fhir.r4.model.TestScript.TestScriptFixtureComponent t : src.getFixture()) tgt.addFixture(convertTestScriptFixtureComponent(t)); for (org.hl7.fhir.r4.model.Reference t : src.getProfile()) tgt.addProfile(convertReference(t));
public org.hl7.fhir.r4.model.TestScript convertTestScript(org.hl7.fhir.instance.model.TestScript src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript tgt = new org.hl7.fhir.r4.model.TestScript(); copyDomainResource(src, tgt); tgt.setUrl(src.getUrl()); tgt.setVersion(src.getVersion()); tgt.setName(src.getName()); tgt.setStatus(convertConformanceResourceStatus(src.getStatus())); tgt.setIdentifier(convertIdentifier(src.getIdentifier())); if (src.hasExperimental()) tgt.setExperimental(src.getExperimental()); tgt.setPublisher(src.getPublisher()); for (org.hl7.fhir.instance.model.TestScript.TestScriptContactComponent t : src.getContact()) tgt.addContact(convertTestScriptContactComponent(t)); if (src.hasDate()) tgt.setDate(src.getDate()); tgt.setDescription(src.getDescription()); for (org.hl7.fhir.instance.model.CodeableConcept t : src.getUseContext()) if (isJurisdiction(t)) tgt.addJurisdiction(convertCodeableConcept(t)); else tgt.addUseContext(convertCodeableConceptToUsageContext(t)); tgt.setPurpose(src.getRequirements()); tgt.setCopyright(src.getCopyright()); tgt.setMetadata(convertTestScriptMetadataComponent(src.getMetadata())); for (org.hl7.fhir.instance.model.TestScript.TestScriptFixtureComponent t : src.getFixture()) tgt.addFixture(convertTestScriptFixtureComponent(t)); for (org.hl7.fhir.instance.model.Reference t : src.getProfile()) tgt.addProfile(convertReference(t));
return addContact(); return addUseContext(); return addJurisdiction(); return addOrigin(); return addDestination(); return addFixture(); return addProfile(); return addVariable(); return addTest();
/** * @return The first repetition of repeating field {@link #profile}, creating it if it does not already exist */ public Reference getProfileFirstRep() { if (getProfile().isEmpty()) { addProfile(); } return getProfile().get(0); }
/** * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist */ public ContactDetail getContactFirstRep() { if (getContact().isEmpty()) { addContact(); } return getContact().get(0); }
/** * @return The first repetition of repeating field {@link #fixture}, creating it if it does not already exist */ public TestScriptFixtureComponent getFixtureFirstRep() { if (getFixture().isEmpty()) { addFixture(); } return getFixture().get(0); }
public TestScript copy() { TestScript dst = new TestScript(); copyValues(dst); dst.url = url == null ? null : url.copy(); dst.identifier = identifier == null ? null : identifier.copy();
public org.hl7.fhir.instance.model.TestScript convertTestScript(org.hl7.fhir.r4.model.TestScript src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.TestScript tgt = new org.hl7.fhir.instance.model.TestScript(); copyDomainResource(src, tgt); tgt.setUrl(src.getUrl()); tgt.setVersion(src.getVersion()); tgt.setName(src.getName()); tgt.setStatus(convertConformanceResourceStatus(src.getStatus())); tgt.setIdentifier(convertIdentifier(src.getIdentifier())); if (src.hasExperimental()) tgt.setExperimental(src.getExperimental()); tgt.setPublisher(src.getPublisher()); for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertTestScriptContactComponent(t)); if (src.hasDate()) tgt.setDate(src.getDate()); tgt.setDescription(src.getDescription()); for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept()) tgt.addUseContext(convertCodeableConcept(t.getValueCodeableConcept())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(convertCodeableConcept(t)); tgt.setRequirements(src.getPurpose()); tgt.setCopyright(src.getCopyright()); tgt.setMetadata(convertTestScriptMetadataComponent(src.getMetadata())); for (org.hl7.fhir.r4.model.TestScript.TestScriptFixtureComponent t : src.getFixture()) tgt.addFixture(convertTestScriptFixtureComponent(t)); for (org.hl7.fhir.r4.model.Reference t : src.getProfile()) tgt.addProfile(convertReference(t));
public org.hl7.fhir.r4.model.TestScript convertTestScript(org.hl7.fhir.instance.model.TestScript src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript tgt = new org.hl7.fhir.r4.model.TestScript(); copyDomainResource(src, tgt); tgt.setUrl(src.getUrl()); tgt.setVersion(src.getVersion()); tgt.setName(src.getName()); tgt.setStatus(convertConformanceResourceStatus(src.getStatus())); tgt.setIdentifier(convertIdentifier(src.getIdentifier())); if (src.hasExperimental()) tgt.setExperimental(src.getExperimental()); tgt.setPublisher(src.getPublisher()); for (org.hl7.fhir.instance.model.TestScript.TestScriptContactComponent t : src.getContact()) tgt.addContact(convertTestScriptContactComponent(t)); if (src.hasDate()) tgt.setDate(src.getDate()); tgt.setDescription(src.getDescription()); for (org.hl7.fhir.instance.model.CodeableConcept t : src.getUseContext()) if (isJurisdiction(t)) tgt.addJurisdiction(convertCodeableConcept(t)); else tgt.addUseContext(convertCodeableConceptToUsageContext(t)); tgt.setPurpose(src.getRequirements()); tgt.setCopyright(src.getCopyright()); tgt.setMetadata(convertTestScriptMetadataComponent(src.getMetadata())); for (org.hl7.fhir.instance.model.TestScript.TestScriptFixtureComponent t : src.getFixture()) tgt.addFixture(convertTestScriptFixtureComponent(t)); for (org.hl7.fhir.instance.model.Reference t : src.getProfile()) tgt.addProfile(convertReference(t));
return addContact(); return addUseContext(); return addJurisdiction(); return addOrigin(); return addDestination(); return addFixture(); return addProfile(); return addVariable(); return addTest();
/** * @return The first repetition of repeating field {@link #variable}, creating it if it does not already exist */ public TestScriptVariableComponent getVariableFirstRep() { if (getVariable().isEmpty()) { addVariable(); } return getVariable().get(0); }
/** * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist */ public UsageContext getUseContextFirstRep() { if (getUseContext().isEmpty()) { addUseContext(); } return getUseContext().get(0); }
/** * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist */ public CodeableConcept getJurisdictionFirstRep() { if (getJurisdiction().isEmpty()) { addJurisdiction(); } return getJurisdiction().get(0); }