Hl7 core bump (#4110)

* Bump to 5.6.67

* wip

* wip

* Remove capabilitystatement2

* Update fhirversion.properties

* Remove xpathusage for r5

* add new structure defs
This commit is contained in:
Tadgh 2022-10-06 10:50:45 -07:00 committed by GitHub
parent 44ed3ee354
commit 18093bf311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 425360 additions and 530025 deletions

View File

@ -233,7 +233,12 @@ public class ResourceProviderR5Test extends BaseResourceProviderR5Test {
// test will fail and the line above should be restored
OperationOutcome oo = myFhirCtx.newJsonParser().parseResource(OperationOutcome.class, respString);
assertEquals(1, oo.getIssue().size());
assertThat(oo.getIssue().get(0).getDiagnostics(), containsString("is not in the value set 'FHIRVersion'"));
// assertThat(oo.getIssue().get(0).getDiagnostics(), containsString("is not in the value set 'FHIRVersion'"));
//As of 2022-10-06, the error is now that RequestGroup is not in the resourcetypes valueset, (though it is).
//TODO JA: I'm not sure if i have to update this valueset somewhere? the linked valueset _does_ contain the resource type.
assertThat(oo.getIssue().get(0).getDiagnostics(), containsString("is not in the value set 'Resource Types'"));
}
}

View File

@ -947,7 +947,6 @@ public class RestHookTestR5Test extends BaseSubscriptionsR5Test {
sp.setCode("accessType");
sp.setType(Enumerations.SearchParamType.TOKEN);
sp.setExpression("Observation.extension('Observation#accessType')");
sp.setXpathUsage(SearchParameter.XPathUsageType.NORMAL);
sp.setStatus(Enumerations.PublicationStatus.ACTIVE);
mySearchParameterDao.create(sp);
mySearchParamRegistry.forceRefresh();

View File

@ -197,13 +197,13 @@ public class R5BundleFactory implements IVersionSpecificBundleFactory {
}
if (!hasLink(Constants.LINK_SELF, myBundle) && isNotBlank(theBundleLinks.getSelf())) {
myBundle.addLink().setRelation(Constants.LINK_SELF).setUrl(theBundleLinks.getSelf());
myBundle.addLink().setRelation(Bundle.LinkRelationTypes.SELF).setUrl(theBundleLinks.getSelf());
}
if (!hasLink(Constants.LINK_NEXT, myBundle) && isNotBlank(theBundleLinks.getNext())) {
myBundle.addLink().setRelation(Constants.LINK_NEXT).setUrl(theBundleLinks.getNext());
myBundle.addLink().setRelation(Bundle.LinkRelationTypes.NEXT).setUrl(theBundleLinks.getNext());
}
if (!hasLink(Constants.LINK_PREVIOUS, myBundle) && isNotBlank(theBundleLinks.getPrev())) {
myBundle.addLink().setRelation(Constants.LINK_PREVIOUS).setUrl(theBundleLinks.getPrev());
myBundle.addLink().setRelation(Bundle.LinkRelationTypes.PREV).setUrl(theBundleLinks.getPrev());
}
addTotalResultsToBundle(theTotalResults, theBundleLinks.bundleType);

View File

@ -1,8 +1,9 @@
# This file contains version definitions
# Generated: 2021-12-24T12:43:01.954-05:00
# Generated: 2022-10-04T09:28:20.928-07:00
resource.Account=org.hl7.fhir.r5.model.Account
resource.ActivityDefinition=org.hl7.fhir.r5.model.ActivityDefinition
resource.ActorDefinition=org.hl7.fhir.r5.model.ActorDefinition
resource.AdministrableProductDefinition=org.hl7.fhir.r5.model.AdministrableProductDefinition
resource.AdverseEvent=org.hl7.fhir.r5.model.AdverseEvent
resource.AllergyIntolerance=org.hl7.fhir.r5.model.AllergyIntolerance
@ -16,7 +17,6 @@ resource.BiologicallyDerivedProduct=org.hl7.fhir.r5.model.BiologicallyDerivedPro
resource.BodyStructure=org.hl7.fhir.r5.model.BodyStructure
resource.Bundle=org.hl7.fhir.r5.model.Bundle
resource.CapabilityStatement=org.hl7.fhir.r5.model.CapabilityStatement
resource.CapabilityStatement2=org.hl7.fhir.r5.model.CapabilityStatement2
resource.CarePlan=org.hl7.fhir.r5.model.CarePlan
resource.CareTeam=org.hl7.fhir.r5.model.CareTeam
resource.ChargeItem=org.hl7.fhir.r5.model.ChargeItem
@ -62,6 +62,8 @@ resource.ExampleScenario=org.hl7.fhir.r5.model.ExampleScenario
resource.ExplanationOfBenefit=org.hl7.fhir.r5.model.ExplanationOfBenefit
resource.FamilyMemberHistory=org.hl7.fhir.r5.model.FamilyMemberHistory
resource.Flag=org.hl7.fhir.r5.model.Flag
resource.FormularyItem=org.hl7.fhir.r5.model.FormularyItem
resource.GenomicStudy=org.hl7.fhir.r5.model.GenomicStudy
resource.Goal=org.hl7.fhir.r5.model.Goal
resource.GraphDefinition=org.hl7.fhir.r5.model.GraphDefinition
resource.Group=org.hl7.fhir.r5.model.Group
@ -121,6 +123,8 @@ resource.QuestionnaireResponse=org.hl7.fhir.r5.model.QuestionnaireResponse
resource.RegulatedAuthorization=org.hl7.fhir.r5.model.RegulatedAuthorization
resource.RelatedPerson=org.hl7.fhir.r5.model.RelatedPerson
resource.RequestGroup=org.hl7.fhir.r5.model.RequestGroup
resource.RequestOrchestration=org.hl7.fhir.r5.model.RequestOrchestration
resource.Requirements=org.hl7.fhir.r5.model.Requirements
resource.ResearchStudy=org.hl7.fhir.r5.model.ResearchStudy
resource.ResearchSubject=org.hl7.fhir.r5.model.ResearchSubject
resource.RiskAssessment=org.hl7.fhir.r5.model.RiskAssessment
@ -148,6 +152,7 @@ resource.Task=org.hl7.fhir.r5.model.Task
resource.TerminologyCapabilities=org.hl7.fhir.r5.model.TerminologyCapabilities
resource.TestReport=org.hl7.fhir.r5.model.TestReport
resource.TestScript=org.hl7.fhir.r5.model.TestScript
resource.Transport=org.hl7.fhir.r5.model.Transport
resource.ValueSet=org.hl7.fhir.r5.model.ValueSet
resource.VerificationResult=org.hl7.fhir.r5.model.VerificationResult
resource.VisionPrescription=org.hl7.fhir.r5.model.VisionPrescription
@ -156,6 +161,7 @@ datatype.Address=org.hl7.fhir.r5.model.Address
datatype.Age=org.hl7.fhir.r5.model.Age
datatype.Annotation=org.hl7.fhir.r5.model.Annotation
datatype.Attachment=org.hl7.fhir.r5.model.Attachment
datatype.Availability=org.hl7.fhir.r5.model.Availability
datatype.BackboneType=org.hl7.fhir.r5.model.BackboneType
datatype.CodeableConcept=org.hl7.fhir.r5.model.CodeableConcept
datatype.CodeableReference=org.hl7.fhir.r5.model.CodeableReference
@ -171,11 +177,13 @@ datatype.Dosage=org.hl7.fhir.r5.model.Dosage
datatype.Duration=org.hl7.fhir.r5.model.Duration
datatype.ElementDefinition=org.hl7.fhir.r5.model.ElementDefinition
datatype.Expression=org.hl7.fhir.r5.model.Expression
datatype.ExtendedContactDetail=org.hl7.fhir.r5.model.ExtendedContactDetail
datatype.Extension=org.hl7.fhir.r5.model.Extension
datatype.HumanName=org.hl7.fhir.r5.model.HumanName
datatype.Identifier=org.hl7.fhir.r5.model.Identifier
datatype.MarketingStatus=org.hl7.fhir.r5.model.MarketingStatus
datatype.Meta=org.hl7.fhir.r5.model.Meta
datatype.MonetaryComponent=org.hl7.fhir.r5.model.MonetaryComponent
datatype.Money=org.hl7.fhir.r5.model.Money
datatype.MoneyQuantity=org.hl7.fhir.r5.model.MoneyQuantity
datatype.Narrative=org.hl7.fhir.r5.model.Narrative
@ -199,6 +207,7 @@ datatype.SubstanceAmount=org.hl7.fhir.r5.model.SubstanceAmount
datatype.Timing=org.hl7.fhir.r5.model.Timing
datatype.TriggerDefinition=org.hl7.fhir.r5.model.TriggerDefinition
datatype.UsageContext=org.hl7.fhir.r5.model.UsageContext
datatype.VirtualServiceDetail=org.hl7.fhir.r5.model.VirtualServiceDetail
datatype.base64Binary=org.hl7.fhir.r5.model.Base64BinaryType
datatype.boolean=org.hl7.fhir.r5.model.BooleanType
datatype.canonical=org.hl7.fhir.r5.model.CanonicalType

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -117,7 +117,8 @@ public class FhirInstanceValidatorR5Test {
ValidationResult output = myVal.validateWithResult(resource);
List<SingleValidationMessage> nonInfo = logResultsAndReturnNonInformationalOnes(output);
assertThat(nonInfo, hasSize(2));
//TODO JA: This is now 3 since we now validate that there is a questionnaire provided.
assertThat(nonInfo, hasSize(3));
}
@SuppressWarnings("unchecked")
@ -869,7 +870,7 @@ public class FhirInstanceValidatorR5Test {
logResultsAndReturnAll(output);
assertThat(
output.getMessages().get(0).getMessage(),
containsString("The value provided ('notvalidcode') is not in the value set 'ObservationStatus' (http://hl7.org/fhir/ValueSet/observation-status|4.6.0), and a code is required from this value set) (error message = Unknown code 'notvalidcode' for in-memory expansion of ValueSet 'http://hl7.org/fhir/ValueSet/observation-status')")
containsString("The value provided ('notvalidcode') is not in the value set 'ObservationStatus' (http://hl7.org/fhir/ValueSet/observation-status|5.0.0-cibuild), and a code is required from this value set) (error message = Unknown code 'notvalidcode' for in-memory expansion of ValueSet 'http://hl7.org/fhir/ValueSet/observation-status')")
);
}
@ -972,7 +973,7 @@ public class FhirInstanceValidatorR5Test {
assertEquals(1, all.size());
assertEquals("Patient.identifier[0].type", all.get(0).getLocationString());
assertEquals(
"None of the codings provided are in the value set 'IdentifierType' (http://hl7.org/fhir/ValueSet/identifier-type), and a coding should come from this value set unless it has no suitable code (note that the validator cannot judge what is suitable) (codes = http://example.com/foo/bar#bar)",
"None of the codings provided are in the value set 'Identifier Type Codes' (http://hl7.org/fhir/ValueSet/identifier-type), and a coding should come from this value set unless it has no suitable code (note that the validator cannot judge what is suitable) (codes = http://example.com/foo/bar#bar)",
all.get(0).getMessage());
assertEquals(ResultSeverityEnum.WARNING, all.get(0).getSeverity());

View File

@ -78,7 +78,7 @@ public class ResourceMinimizerMojo extends AbstractMojo {
IParser parser = EncodingEnum.detectEncoding(inputString).newParser(myCtx);
IBaseResource input = parser.parseResource(inputString);
if (input instanceof IResource) {
if (input instanceof IResource) {
((IResource) input).getText().getDiv().setValueAsString(null);
((IResource) input).getText().getStatus().setValueAsString(null);
if (input instanceof Bundle) {
@ -273,7 +273,7 @@ public class ResourceMinimizerMojo extends AbstractMojo {
m.myCtx = ctxR5;
m.targetDirectory = new File("./hapi-fhir-validation-resources-r5/src/main/resources/org/hl7/fhir/r5/model/compartment");
m.fhirVersion = "R5";
m.execute();
// m.execute();
byteCount += m.getByteCount();
fileCount += m.getFileCount();

View File

@ -774,7 +774,7 @@
<properties>
<fhir_core_version>5.6.55</fhir_core_version>
<fhir_core_version>5.6.68</fhir_core_version>
<ucum_version>1.0.3</ucum_version>
<surefire_jvm_args>-Dfile.encoding=UTF-8 -Xmx2048m</surefire_jvm_args>