Re: Loinc Upload in HAPI FHIR

142 views
Skip to first unread message
Message has been deleted

Anton Kurylovich

unread,
Nov 20, 2023, 10:32:21 AM11/20/23
to HAPI FHIR
What version of LOINC? I was able to upload it using the $upload-external-code-system API.
On Friday, November 10, 2023 at 2:47:03 AM UTC-5 20.sande...@gmail.com wrote:
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...
Message has been deleted

Anton Kurylovich

unread,
Nov 27, 2023, 10:30:47 AM11/27/23
to HAPI FHIR
Do you need to use 2.72 specifically? there are more recent versions available, I think latest is Loinc 2.75, does that work? 

Also give the direct API call a shot for upload, example POST can be found here: https://groups.google.com/g/hapi-fhir/c/V7ykfY6EVh8, just in case, I am not sure of everything that the CLI is doing for us. 

If not, sounds like we need to log a github issue.
On Saturday, November 25, 2023 at 1:04:11 AM UTC-5 20.sande...@gmail.com wrote:

Hi,

I am using

HAPI FHIR Server : 6.8.0
Loinc Version: LOINC 2.7.2
Message has been deleted

Anton Kurylovich

unread,
Jan 12, 2024, 9:24:44 AMJan 12
to HAPI FHIR
Sorry I never followed up on this, did you ever resolve or log a github issue at least? Just seems like a bug to me, so we should log it if we haven't.

On Wednesday, November 29, 2023 at 11:25:10 AM UTC-5 20.sande...@gmail.com wrote:
If i am using 2.75 then system is again raising error

2023-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)
2023-11-29 21:38:20.76 [Thread-0] INFO  ca.uhn.fhir.cli.App HAPI FHIR is shutting down...



I also used in loinc.properties

# This is the version identifier for the AnswerList file
answerlist.version=2.75
# This is the version identifier for uploaded ConceptMap resources
conceptmap.version=2.75

loinc.hierarchy.file=AccessoryFiles/ComponentHierarchyBySystem/ComponentHierarchyBySystem.csv

codesystem.version=2.75

But still, its not working.



Reply all
Reply to author
Forward
0 new messages