-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/ig install #601
Feat/ig install #601
Conversation
This is a feature requested by @costateixeira for speeding up the process of having an IG and make it usable without having to reboot the server instance. It is disabled by default. |
Is there a way to automatically test this feature? |
Should be possible.
upload a package.tgz - can be from any of our IGs (e.g. sample IG), do the
POST and then do the GET a conformance resource e.g.
StructureDefinition/myObservation
Not sure if we have to account for cache refresh etc.
…On Wed, Nov 22, 2023 at 8:23 PM dotasek ***@***.***> wrote:
Is there a way to automatically test this feature?
—
Reply to this email directly, view it on GitHub
<#601 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD3HUUFRWMJFUHWKCPWJLODYFZGMDAVCNFSM6AAAAAA6UCRZRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRTGM3TQNRTGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Here is what I did to test:
{
"resourceType": "Parameters",
"parameter": [
{
"name": "npmContent",
"valueBase64Binary": "REPLACEME"
}
]
}
I get this 200 response:
From there I can see some indication of success in the logs:
And I can query for a randomly selected StructureDefinition: Which gives me a 200 and a StructureDefinition for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See testing procedure in comments.
Sounds like "pass", right?
…On Thu, 23 Nov 2023, 16:56 dotasek, ***@***.***> wrote:
Here is what I did to test:
1.
Downloaded the IPS tgz (as package.tgz)
2.
Converted to a base64 file:cat package.tgz | base64 > base64_package
3.
Created a template json file:
{
"resourceType": "Parameters",
"parameter": [
{
"name": "npmContent",
"valueBase64Binary": "REPLACEME"
}
]
}
1.
Replaced REPLACEME. I got most of the way tere with perl -pe
's/REPLACEME/cat base64_package/ge' -i query_template.json and then
had to fix a stray newline.
2.
Sent this as the body to
http://0.0.0.0:8080/fhir/ImplementationGuide/$install
I get this 200 response:
{
"resourceType": "Parameters"
}
From there I can see some indication of success in the logs:
2023-11-23 10:35:05.800 [http-nio-8080-exec-9] INFO fhirtest.access [LoggingInterceptor.java:177] Path[/fhir] Source[] Operation[extended-operation-type $install ImplementationGuide] UA[insomnia/8.4.4] Params[] ResponseEncoding[JSON] Operation[extended-operation-type $install ImplementationGuide] UA[insomnia/8.4.4] Params[] ResponseEncoding[JSON]
2023-11-23 10:39:01.236 [http-nio-8080-exec-1] INFO c.u.f.j.p.loader.PackageLoaderSvc [PackageLoaderSvc.java:116] Parsing package .tar.gz (1060702 bytes) from Embedded content
2023-11-23 10:39:01.660 [http-nio-8080-exec-1] INFO c.u.f.jpa.packages.JpaPackageCache [JpaPackageCache.java:417] Package[hl7.fhir.uv.ips#1.1.0] Indexing StructureDefinition Resource[package/StructureDefinition-AllergyIntolerance-uv-ips.json] with URL: http://hl7.org/fhir/uv/ips/StructureDefinition/AllergyIntolerance-uv-ips|1.1.0
2023-11-23 <http://hl7.org/fhir/uv/ips/StructureDefinition/AllergyIntolerance-uv-ips%7C1.1.02023-11-23> 10:39:01.764 [http-nio-8080-exec-1] INFO c.u.f.jpa.packages.JpaPackageCache [JpaPackageCache.java:417] Package[hl7.fhir.uv.ips#1.1.0] Indexing StructureDefinition Resource[package/StructureDefinition-Bundle-uv-ips.json] with URL: http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips|1.1.0
2023-11-23 <http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips%7C1.1.02023-11-23> 10:39:01.766 [http-nio-8080-exec-1] INFO c.u.f.jpa.packages.JpaPackageCache [JpaPackageCache.java:417] Package[hl7.fhir.uv.ips#1.1.0] Indexing StructureDefinition Resource[package/StructureDefinition-CodeableConcept-uv-ips.json] with URL: http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips|1.1.0
2
...
And I can query for a randomly selected StructureDefinition:
http://0.0.0.0:8080/fhir/StructureDefinition/Observation-pregnancy-edd-uv-ips
Which gives me a 200 and a StructureDefinition for
Observation-pregnancy-edd-uv-ips
—
Reply to this email directly, view it on GitHub
<#601 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD3HUUCW5FCKHOH45DYMQFDYF5W35AVCNFSM6AAAAAA6UCRZRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGY2TINZWGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
No description provided.