I got error while uploading LOINC in HAPI FHIR Server.I am able to load Snomed CT using CLI tool. But getting error in LOINC.2023-11-10 13:14:12.07 [main] ERROR c.u.f.c.UploadTerminologyCommand Received the following response:
{
"resourceType": "OperationOutcome",
"issue": [ {
"severity": "error",
"code": "processing",
"diagnostics": "HAPI-0575: Resource of type \"CodeSystem\" does not declare conformance to profile from: [http://hl7.org/fhir/StructureDefinition/CodeSystem, http://hl7.org/fhir/StructureDefinition/shareablecodesystem]"
} ]
}
2023-11-10 13:14:12.07 [main] ERROR ca.uhn.fhir.cli.App Error during execution:
ca.uhn.fhir.rest.server.exceptions.PreconditionFailedException: HTTP 412 Precondition Failed: HAPI-0575: Resource of type "CodeSystem" does not declare conformance to profile from: [http://hl7.org/fhir/StructureDefinition/CodeSystem, http://hl7.org/fhir/StructureDefinition/shareablecodesystem]
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:67)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:484)
at ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException.newInstance(BaseServerResponseException.java:310)
at ca.uhn.fhir.rest.client.impl.BaseClient.invokeClient(BaseClient.java:370)
at ca.uhn.fhir.rest.client.impl.GenericClient$BaseClientExecutable.invoke(GenericClient.java:541)
at ca.uhn.fhir.rest.client.impl.GenericClient$OperationInternal.execute(GenericClient.java:1320)
at ca.uhn.fhir.cli.UploadTerminologyCommand.invokeOperation(UploadTerminologyCommand.java:230)
at ca.uhn.fhir.cli.UploadTerminologyCommand.run(UploadTerminologyCommand.java:134)
at ca.uhn.fhir.cli.BaseApp.run(BaseApp.java:266)
at ca.uhn.fhir.cli.App.main(App.java:43)
2023-11-10 13:14:12.09 [Thread-0] INFO ca.uhn.fhir.cli.App HAPI FHIR is shutting down...
Hi,I am usingHAPI FHIR Server : 6.8.0Loinc Version: LOINC 2.7.2
If i am using 2.75 then system is again raising error2023-11-29 21:38:20.72 [main] ERROR c.u.f.c.UploadTerminologyCommand Received the following response:
"resourceType": "OperationOutcome",
"issue": [ {
"severity": "error",
"code": "processing",
"diagnostics": "HAPI-0575: Resource of type \"CodeSystem\" does not declare conformance to profile from: [http://hl7.org/fhir/StructureDefinition/CodeSystemtureDefinition/CodeSystem, http://hl7.org/fhir/StructureDefinition/shareablecodesystem]"
} ]
}
2023-11-29 21:38:20.73 [main] ERROR ca.uhn.fhir.cli.App Error during execution:
ca.uhn.fhir.rest.server.exceptions.PreconditionFailedException: HTTP 412 Precondition Failed: HAPI-0575: Resource of type "CodeSystem" does not declare conforma
does not declare conformance to profile from: [http://hl7.org/fhir/StructureDefinition/CodeSystem, http://hl7.org/fhir/StructureDefinition/shareablecodesystem]
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:67)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:484)
at ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException.newInstance(BaseServerResponseException.java:310)
at ca.uhn.fhir.rest.client.impl.BaseClient.invokeClient(BaseClient.java:370)
at ca.uhn.fhir.rest.client.impl.GenericClient$BaseClientExecutable.invoke(GenericClient.java:541)
at ca.uhn.fhir.rest.client.impl.GenericClient$OperationInternal.execute(GenericClient.java:1320)
at ca.uhn.fhir.cli.UploadTerminologyCommand.invokeOperation(UploadTerminologyCommand.java:230)
at ca.uhn.fhir.cli.UploadTerminologyCommand.run(UploadTerminologyCommand.java:134)
at ca.uhn.fhir.cli.BaseApp.run(BaseApp.java:266)
at ca.uhn.fhir.cli.App.main(App.java:43)
I also used in loinc.properties# This is the version identifier for the AnswerList fileanswerlist.version=2.75# This is the version identifier for uploaded ConceptMap resourcesconceptmap.version=2.75loinc.hierarchy.file=AccessoryFiles/ComponentHierarchyBySystem/ComponentHierarchyBySystem.csvcodesystem.version=2.75But still, its not working.