This result is being rendered in HTML for easy viewing. You may access this content as Raw JSON or Raw XML or Raw Turtle or view this content in HTML JSON or HTML XML or HTML Turtle . Response generated in 18ms.
{"resourceType": "Bundle","id": "0fff623f-127a-4061-9469-12b0926b6db8","meta": {"lastUpdated": "2024-11-12T13:02:08.358+00:00"},"type": "searchset","total": 16,"link": [ {"relation": "self","url": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication"} ],"entry": [ {"fullUrl": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication/20221117_hapi_fhir_6_2_0","resource": {"resourceType": "Communication","id": "20221117_hapi_fhir_6_2_0","meta": {"versionId": "1","tag": [ {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Release"} ]},"language": "en","text": {"status": "generated","div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Welcome to the winter release of HAPI FHIR! Support has been added for FHIR R4B (4.3.0). See the <a href=\"/hapi-fhir/docs/getting_started/r4b.html\">R4B Documentation</a> for more information on what this means. Now onto the rest!</p>\n<h3>Breaking Changes</h3>\n<ul>\n<li>The <code>ActionRequestDetails</code> class has been dropped (it has been deprecated\nsince HAPI FHIR 4.0.0). This class was used as a parameter to the\n<code>SERVER_INCOMING_REQUEST_PRE_HANDLED</code> interceptor pointcut, but can be\nreplaced in any existing client code with <code>RequestDetails</code>. This change\nalso removes an undocumented behaviour where the JPA server internally\ninvoked the <code>SERVER_INCOMING_REQUEST_PRE_HANDLED</code> a second time from\nwithin various processing methods. This behaviour caused performance\nproblems for some interceptors (e.g. <code>SearchNarrowingInterceptor</code>) and\nno longer offers any benefit so it is being removed.</li>\n<li>Previously when ValueSets were pre-expanded after loinc terminology upload, expansion was failing with an exception for each ValueSet\nwith more than 10,000 properties. This problem has been fixed.\nThis fix changed some freetext mappings (definitions about how resources are freetext indexed) for terminology resources, which requires\nreindexing those resources. To do this use the <code>reindex-terminology</code> command."</li>\n<li>Removed Flyway database migration engine. The migration table still tracks successful and failed migrations\nto determine which migrations need to be run at startup. Database migrations no longer need to run differently when\nusing an older database version.</li>\n<li>The interceptor system has now deprecated the concept of ThreadLocal interceptors. This feature was\nadded for an anticipated use case, but has never seen any real use that we are aware of and removing it\nshould provide a minor performance improvement to the interceptor registry.</li>\n</ul>\n<h3>Security Changes</h3>\n<ul>\n<li>Upon hitting a subscription delivery failure, we currently log the failing payload which could be considered PHI. Resource content is no longer written to logs on subscription failure.</li>\n</ul>\n<h3>General Client/Server/Parser Changes</h3>\n<ul>\n<li>Previously, Celsius and Fahrenheit temperature quantities were not normalized. This is now fixed.\nThis change requires reindexing of resources containing Celsius or Fahrenheit temperature quantities.</li>\n<li>Fixed bug where searching with a target resource parameter (Coverage:payor:Patient) as value to an _include parameter would fail with a 500 response.</li>\n<li>Previously, DELETE request type is not supported for any operations. DELETE is now supported, and is enabled for operation $export-poll-status to allow cancellation of jobs</li>\n<li>Previously, when a client would provide a requestId within the source uri of a Meta.source, the provided requestId would get discarded and replaced by an id generated by the system. This has been corrected</li>\n<li>In the JPA server, when a resource is being updated, the response will now include any tags or\nsecurity labels which were not present in the request but were carried forward from the previous\nversion of the resource.</li>\n<li>Previously, if the Endpoint Base URL is set to something different from the default value, the URL that export-poll-status returned is incorrect.\nAfter correcting the export-poll-status URL, the binary file URL returned is also incorrect. This error has also been fixed and the URLs that are returned\nfrom $export and $export-poll-status will not contain the extra path from 'Fixed Value for Endpoint Base URL'.</li>\n<li>Previously, the <code>:nickname</code> qualifier only worked with the predefined <code>name</code> and <code>given</code> SearchParameters.\nThis has been fixed and now the <code>:nickname</code> qualifier can be used with any string SearchParameters.</li>\n<li>Previously, when executing a '[base]/_history' search, '_since' and '_at' shared the same behaviour. When a user searched for the date between the records' updated date with '_at', the record of '_at' time was not returned.\nThis has been corrected. '_since' query parameter works as it previously did, and the '_at' query parameter returns the record of '_at' time.</li>\n<li>Previously, creating a DSTU3 SearchParameter with an expression that does not start with a resource type would throw an error. This has been corrected.</li>\n<li>There was a bug in content-type negotiation when reading Binary resources. Previously, when a client requested a Binary resource and with an <code>Accept</code>\nheader that matched the <code>contentType</code> of the stored resource, the server would return an XML representation of the Binary resource. This has been fixed, and a request with a matching <code>Accept</code> header will receive\nthe stored binary data directly as the requested content type.</li>\n<li>A new built-in server interceptor called the InteractionBlockingInterceptor has been added. This interceptor\nallows individual operations to be included/excluded from a RestfulServer's exported capabilities.</li>\n<li>The OpenApi generator now allows additional CSS customization for the Swagger UI page, as well as the\noption to disable resource type pages.</li>\n<li>Modified BinaryAccessProvider to use a safer method of checking the contents of an input stream. Thanks to @ttntrifork for the fix!</li>\n<li>Fixed issue where adding a sort parameter to a query would return an incomplete result set.</li>\n<li>Added new attribute for the @Operation annotation to define the operation's canonical URL. This canonical URL value will populate\nthe operation definition in the CapabilityStatement resource.</li>\n<li>A new interceptor pointcut <code>STORAGE_TRANSACTION_PROCESSING</code> has been added. Hooks for this\npointcut can examine and modify FHIR transaction bundles being processed by the JPA server before\nprocessing starts.</li>\n<li>In the JPA server, when deleting a resource the associated tags were previously deleted even though\nthe FHIR specification states that tags are independent of FHIR versioning. After this fix, resource tags\nand security labels will remain when a resource is deleted. They can be fetched using the <code>$meta</code> operation\nagainst the deleted resource, and will remain if the resource is brought back in a subsequent update.</li>\n<li>Fixed a bug which caused a failure when combining a Consent Interceptor with version conversion via the <code>Accept</code> header.</li>\n</ul>\n<h3>Bulk Export</h3>\n<ul>\n<li>Previously, bulk export for Group type with _typeFilter did not apply the filter if it was for the patients, and returned all members of the group.\nThis has now been fixed, and the filter will apply.</li>\n<li>A regression was introduced in 6.1.0 which caused bulk export jobs to not default to the correct output format when the <code>_outputFormat</code> parameter was omitted. This behaviour has been fixed, and if omitted, will now default to the only legal value <code>application/fhir+ndjson</code>.</li>\n<li>Fixed a bug in Group Bulk Export where the server would crash in oracle due to too many clauses.</li>\n<li>Fixed a Group Bulk Export bug which was causing it to fail to return resources due to an incorrect search.</li>\n<li>Fixed a Group Bulk Export bug in which the group members would not be expanded correctly.</li>\n<li>Fixed a bug in Group Bulk Export: If a group member was part of multiple groups , it was causing other groups to be included during Group Bulk Export, if the Group resource type was specified. Now, when\ndoing an export on a specific group, and you elect to return Group resources, only the called Group will be returned, regardless of cross-membership.</li>\n<li>Previously, Patient Bulk Export only supported endpoint [fhir base]/Patient/$export, which exports all patients.\nNow, Patient Export can be done at the instance level, following this format: <code>[fhir base]/Patient/[id]/$export</code>, which will export only the records for one patient.\nAdditionally, added support for the <code>patient</code> parameter in Patient Bulk Export, which is another way to get the records of only one patient.</li>\n<li>Fixed the <code>$poll-export-status</code> endpoint so that when a job is complete, this endpoint now correctly includes the <code>request</code> and <code>requiresAccessToken</code> attributes.</li>\n<li>Fixed a bug where /Patient/$export would fail if _type=Patient parameter\nwas not included.</li>\n<li>Previously, Group Bulk Export did not support the inclusion of resources referenced in the resources in the patient compartment.\nThis is now supported.</li>\n<li>A previous fix resulted in Bulk Export files containing mixed resource types, which is\nnot allowed in the bulk data access IG. This has been corrected.</li>\n<li>A previous fix resulted in Bulk Export files containing duplicate resources, which is\nnot allowed in the bulk data access IG. This has been corrected.</li>\n<li>Previously, the number of resources per binary file in bulk export was a static 1000. This is now configurable by a new JpaStorageSettings property called\n'setBulkExportFileMaximumCapacity()', and the default value is 1000 resources per file.</li>\n<li>By default, if the <code>$export</code> operation receives a request that is identical to one that has been recently\nprocessed, it will attempt to reuse the batch job from the former request. A new configuration parameter has been</li>\n<li>introduced that disables this behavior and forces a new batch job on every call.</li>\n<li>Bulk Group export was failing to export Patient resources when Client ID mode was set to: ANY. This has been fixed</li>\n<li>Previously, Bulk Export jobs were always reused, even if completed. Now, jobs are only reused if an identical job is already running, and has not yet completed or failed.</li>\n</ul>\n<h3>Other Operations</h3>\n<ul>\n<li>Extend $member-match to validate matched patient against family name and birthdate</li>\n<li><code>$mdm-submit</code> can now be run as a batch job, which will return a job ID, and can be polled for status. This can be accomplished by sending a <code>Prefer: respond-async</code> header with the request.</li>\n<li>Previously, if the <code>$reindex</code> operation failed with a <code>ResourceVersionConflictException</code> the related<br/>\nbatch job would fail. This has been corrected by adding 10 retry attempts for transactions that have\nfailed with a <code>ResourceVersionConflictException</code> during the <code>$reindex</code> operation. In addition, the <code>ResourceIdListStep</code>\nwas submitting one more resource than expected (i.e. 1001 records processed during a <code>$reindex</code> operation if only 1000\n<code>Resources</code> were in the database). This has been corrected.</li>\n</ul>\n<h3>CLI Tool changes:</h3>\n<ul>\n<li>Added a new optional parameter to the <code>upload-terminology</code> operation of the HAPI-FHIR CLI. you can pass the <code>-s</code> or <code>--size</code> parameter to specify\nthe maximum size that will be transmitted to the server, before a local file reference is used. This parameter can be filled in using human-readable format, for example:\n<code>upload-terminology -s \\"1GB\\"</code> will permit zip files up to 1 gigabyte, and anything larger than that would default to using a local file reference.</li>\n<li>Previously, using the <code>import-csv-to-conceptmap</code> command in the CLI successfully created ConceptMap resources\nwithout a <code>ConceptMap.status</code> element, which is against the FHIR specification. This has been fixed by adding a required\noption for status for the command.</li>\n<li>Added support for -l parameter for providing a local validation profile in the HAPI FHIR CLI.</li>\n<li>Previously, when the upload-terminology command was used to upload a terminology file with endpoint validation enabled, a validation error occurred due to a missing file content type.\nThis has been fixed by specifying the file content type of the uploaded file.</li>\n<li>For SNOMED CT, upload-terminology now supports both Canadian and International edition's file names for the SCT Description File</li>\n<li>Documentation was added for <code>reindex-terminology</code> command.</li>\n</ul>\n<h3>JPA Server General Changes</h3>\n<ul>\n<li>Changed Minimum Size (bytes) in FHIR Binary Storage of the persistence module from an integer to a long. This will permit larger binaries.</li>\n<li>Previously, if a FullTextSearchSvcImpl was defined, but was disabled via configuration, there could be data loss when reindexing due to transaction rollbacks. This has been corrected. Thanks to @dyoung-work for the fix!</li>\n<li>Fixed a bug where the $everything operation on Patient instances and the Patient type was not correctly propagating the transactional semantics. This was causing callers to not be in a transactional context.</li>\n<li>Previously when updating a phonetic search parameter, any existing resource will not have its search parameter String updated upon reindex if the normalized String is the same letter as under the old algorithm (ex JN to JAN). Searching on the new normalized String was failing to return results. This has been corrected.</li>\n<li>Previously, when creating a <code>DocumentReference</code> with an <code>Attachment</code> containing a URL over 254 characters\nan error was thrown. This has been corrected and now an <code>Attachment</code> URL can be up to 500 characters.</li>\n</ul>\n<h3>JPA Server Performance Changes</h3>\n<ul>\n<li>Initial page loading has been optimized to reduce the number of prefetched resources. This should improve the speed of initial search queries in many cases.</li>\n<li>Cascading deletes don't work correctly if multiple threads initiate a delete at the same time. Either the resource won't be found or there will be a collision on inserting the new version. This changes fixes the problem by better handling these conditions to either ignore an already deleted resource or to keep retrying in a new inner transaction.</li>\n<li>When using SearchNarrowingInterceptor, FHIR batch operations with a large number\nof conditional create/update entries exhibited very slow performance due to an\nunnecessary nested loop. This has been corrected.</li>\n<li>When using ForcedOffsetSearchModeInterceptor, any synchronous searches initiated programmatically (i.e. through the\ninternal java API, not the REST API) will not be modified. This prevents issues when a java call requests a synchronous\nsearch larger than the default offset search page size</li>\n<li>Previously, when using _offset, the queries will result in short pages, and repeats results on different pages.\nThis has now been fixed.</li>\n<li>Processing for <code>_include</code> and <code>_revinclude</code> parameters in the JPA server has been streamlined, which should\nimprove performance on systems where includes are heavily used.</li>\n</ul>\n<h3>Database-specific Changes</h3>\n<ul>\n<li>Database migration steps were failing with Oracle 19C. This has been fixed by allowing the database engine to skip dropping non-existent indexes.</li>\n</ul>\n<h3>Terminology Server, Fulltext Search, and Validation Changes</h3>\n<ul>\n<li>With Elasticsearch configured, including terminology, an exception was raised while expanding a ValueSet\nwith more than 10,000 concepts. This has now been fixed.</li>\n<li>Previously when ValueSets were pre-expanded after loinc terminology upload, expansion was failing with an exception for each ValueSet\nwith more than 10,000 properties. This problem has been fixed.\nThis fix changed some freetext mappings (definitions about how resources are freetext indexed) for terminology resources, which requires\nreindexing those resources. To do this use the <code>reindex-terminology</code> command."</li>\n<li>Added support for AWS OpenSearch to Fulltext Search. If an AWS Region is configured, HAPI-FHIR will assume you intend to connect to an AWS-managed OpenSearch instance, and will use\nAmazon's <a href=\"https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/auth/DefaultAWSCredentialsProviderChain.html\">DefaultAwsCredentialsProviderChain</a> to authenticate against it. If both username and password are provided, HAPI-FHIR will attempt to use them as a static credentials provider.</li>\n<li>Search for strings with <code>:text</code> qualifier was not performing advanced search. This has been corrected.</li>\n<li>LOINC terminology upload process was enhanced to consider 24 additional properties which were defined in\nloinc.csv file but not uploaded.</li>\n<li>LOINC terminology upload process was enhanced by loading <code>MAP_TO</code> properties defined in MapTo.csv input file to TermConcept(s).</li>\n</ul>\n<h3>MDM (Master Data Management)</h3>\n<ul>\n<li>MDM messages were using the resource id as a message key when it should be using the EID as a partition hash key.\nThis could lead to duplicate golden resources on systems using Kafka as a message broker.</li>\n<li><code>$mdm-submit</code> can now be run as a batch job, which will return a job ID, and can be polled for status. This can be accomplished by sending a <code>Prefer: respond-async</code> header with the request.</li>\n</ul>\n<h3>Batch Framework</h3>\n<ul>\n<li>Fast-tracking batch jobs that produced only one chunk has been rewritten to use Quartz triggerJob. This will\nensure that at most one thread is updating job status at a time. Also jobs that had FAILED, ERRORED, or been CANCELLED\ncould be accidentally set back to IN_PROGRESS; this has been corrected</li>\n<li>All Spring Batch dependencies and services have been removed. Async processing has fully migrated to Batch 2.</li>\n<li>In HAPI-FHIR 6.1.0, a regression was introduced into bulk export causing exports beyond the first one to fail in strange ways. This has been corrected.</li>\n<li>A remove method has been added to the Batch2 job registry. This will allow for dynamic job registration\nin the future.</li>\n<li>Batch2 jobs were incorrectly prevented from transitioning from ERRORED to COMPLETE status.</li>\n</ul>\n<h3>Package Registry</h3>\n<ul>\n<li>Provided the ability to have the NPM package installer skip installing a package if it is already installed and matches the version requested. This can be controlled by\nthe <code>reloadExisting</code> attribute in PackageInstallationSpec. It defaults to <code>true</code>, which is the existing behaviour. Thanks to Craig McClendon (@XcrigX) for the contribution!</li>\n</ul>\n</div>"},"status": "completed","sent": "2022-11-17T08:00:00-05:00","sender": {"reference": "https://smilecdr.com/about_us/#james","display": "James Agnew"},"payload": [ {"contentString": "<p>Welcome to the winter release of HAPI FHIR! Support has been added for FHIR R4B (4.3.0). See the <a href=\"/hapi-fhir/docs/getting_started/r4b.html\">R4B Documentation</a> for more information on what this means. Now onto the rest!</p>\n<h3>Breaking Changes</h3>\n<ul>\n<li>The <code>ActionRequestDetails</code> class has been dropped (it has been deprecated\nsince HAPI FHIR 4.0.0). This class was used as a parameter to the\n<code>SERVER_INCOMING_REQUEST_PRE_HANDLED</code> interceptor pointcut, but can be\nreplaced in any existing client code with <code>RequestDetails</code>. This change\nalso removes an undocumented behaviour where the JPA server internally\ninvoked the <code>SERVER_INCOMING_REQUEST_PRE_HANDLED</code> a second time from\nwithin various processing methods. This behaviour caused performance\nproblems for some interceptors (e.g. <code>SearchNarrowingInterceptor</code>) and\nno longer offers any benefit so it is being removed.</li>\n<li>Previously when ValueSets were pre-expanded after loinc terminology upload, expansion was failing with an exception for each ValueSet\nwith more than 10,000 properties. This problem has been fixed.\nThis fix changed some freetext mappings (definitions about how resources are freetext indexed) for terminology resources, which requires\nreindexing those resources. To do this use the <code>reindex-terminology</code> command."</li>\n<li>Removed Flyway database migration engine. The migration table still tracks successful and failed migrations\nto determine which migrations need to be run at startup. Database migrations no longer need to run differently when\nusing an older database version.</li>\n<li>The interceptor system has now deprecated the concept of ThreadLocal interceptors. This feature was\nadded for an anticipated use case, but has never seen any real use that we are aware of and removing it\nshould provide a minor performance improvement to the interceptor registry.</li>\n</ul>\n<h3>Security Changes</h3>\n<ul>\n<li>Upon hitting a subscription delivery failure, we currently log the failing payload which could be considered PHI. Resource content is no longer written to logs on subscription failure.</li>\n</ul>\n<h3>General Client/Server/Parser Changes</h3>\n<ul>\n<li>Previously, Celsius and Fahrenheit temperature quantities were not normalized. This is now fixed.\nThis change requires reindexing of resources containing Celsius or Fahrenheit temperature quantities.</li>\n<li>Fixed bug where searching with a target resource parameter (Coverage:payor:Patient) as value to an _include parameter would fail with a 500 response.</li>\n<li>Previously, DELETE request type is not supported for any operations. DELETE is now supported, and is enabled for operation $export-poll-status to allow cancellation of jobs</li>\n<li>Previously, when a client would provide a requestId within the source uri of a Meta.source, the provided requestId would get discarded and replaced by an id generated by the system. This has been corrected</li>\n<li>In the JPA server, when a resource is being updated, the response will now include any tags or\nsecurity labels which were not present in the request but were carried forward from the previous\nversion of the resource.</li>\n<li>Previously, if the Endpoint Base URL is set to something different from the default value, the URL that export-poll-status returned is incorrect.\nAfter correcting the export-poll-status URL, the binary file URL returned is also incorrect. This error has also been fixed and the URLs that are returned\nfrom $export and $export-poll-status will not contain the extra path from 'Fixed Value for Endpoint Base URL'.</li>\n<li>Previously, the <code>:nickname</code> qualifier only worked with the predefined <code>name</code> and <code>given</code> SearchParameters.\nThis has been fixed and now the <code>:nickname</code> qualifier can be used with any string SearchParameters.</li>\n<li>Previously, when executing a '[base]/_history' search, '_since' and '_at' shared the same behaviour. When a user searched for the date between the records' updated date with '_at', the record of '_at' time was not returned.\nThis has been corrected. '_since' query parameter works as it previously did, and the '_at' query parameter returns the record of '_at' time.</li>\n<li>Previously, creating a DSTU3 SearchParameter with an expression that does not start with a resource type would throw an error. This has been corrected.</li>\n<li>There was a bug in content-type negotiation when reading Binary resources. Previously, when a client requested a Binary resource and with an <code>Accept</code>\nheader that matched the <code>contentType</code> of the stored resource, the server would return an XML representation of the Binary resource. This has been fixed, and a request with a matching <code>Accept</code> header will receive\nthe stored binary data directly as the requested content type.</li>\n<li>A new built-in server interceptor called the InteractionBlockingInterceptor has been added. This interceptor\nallows individual operations to be included/excluded from a RestfulServer's exported capabilities.</li>\n<li>The OpenApi generator now allows additional CSS customization for the Swagger UI page, as well as the\noption to disable resource type pages.</li>\n<li>Modified BinaryAccessProvider to use a safer method of checking the contents of an input stream. Thanks to @ttntrifork for the fix!</li>\n<li>Fixed issue where adding a sort parameter to a query would return an incomplete result set.</li>\n<li>Added new attribute for the @Operation annotation to define the operation's canonical URL. This canonical URL value will populate\nthe operation definition in the CapabilityStatement resource.</li>\n<li>A new interceptor pointcut <code>STORAGE_TRANSACTION_PROCESSING</code> has been added. Hooks for this\npointcut can examine and modify FHIR transaction bundles being processed by the JPA server before\nprocessing starts.</li>\n<li>In the JPA server, when deleting a resource the associated tags were previously deleted even though\nthe FHIR specification states that tags are independent of FHIR versioning. After this fix, resource tags\nand security labels will remain when a resource is deleted. They can be fetched using the <code>$meta</code> operation\nagainst the deleted resource, and will remain if the resource is brought back in a subsequent update.</li>\n<li>Fixed a bug which caused a failure when combining a Consent Interceptor with version conversion via the <code>Accept</code> header.</li>\n</ul>\n<h3>Bulk Export</h3>\n<ul>\n<li>Previously, bulk export for Group type with _typeFilter did not apply the filter if it was for the patients, and returned all members of the group.\nThis has now been fixed, and the filter will apply.</li>\n<li>A regression was introduced in 6.1.0 which caused bulk export jobs to not default to the correct output format when the <code>_outputFormat</code> parameter was omitted. This behaviour has been fixed, and if omitted, will now default to the only legal value <code>application/fhir+ndjson</code>.</li>\n<li>Fixed a bug in Group Bulk Export where the server would crash in oracle due to too many clauses.</li>\n<li>Fixed a Group Bulk Export bug which was causing it to fail to return resources due to an incorrect search.</li>\n<li>Fixed a Group Bulk Export bug in which the group members would not be expanded correctly.</li>\n<li>Fixed a bug in Group Bulk Export: If a group member was part of multiple groups , it was causing other groups to be included during Group Bulk Export, if the Group resource type was specified. Now, when\ndoing an export on a specific group, and you elect to return Group resources, only the called Group will be returned, regardless of cross-membership.</li>\n<li>Previously, Patient Bulk Export only supported endpoint [fhir base]/Patient/$export, which exports all patients.\nNow, Patient Export can be done at the instance level, following this format: <code>[fhir base]/Patient/[id]/$export</code>, which will export only the records for one patient.\nAdditionally, added support for the <code>patient</code> parameter in Patient Bulk Export, which is another way to get the records of only one patient.</li>\n<li>Fixed the <code>$poll-export-status</code> endpoint so that when a job is complete, this endpoint now correctly includes the <code>request</code> and <code>requiresAccessToken</code> attributes.</li>\n<li>Fixed a bug where /Patient/$export would fail if _type=Patient parameter\nwas not included.</li>\n<li>Previously, Group Bulk Export did not support the inclusion of resources referenced in the resources in the patient compartment.\nThis is now supported.</li>\n<li>A previous fix resulted in Bulk Export files containing mixed resource types, which is\nnot allowed in the bulk data access IG. This has been corrected.</li>\n<li>A previous fix resulted in Bulk Export files containing duplicate resources, which is\nnot allowed in the bulk data access IG. This has been corrected.</li>\n<li>Previously, the number of resources per binary file in bulk export was a static 1000. This is now configurable by a new JpaStorageSettings property called\n'setBulkExportFileMaximumCapacity()', and the default value is 1000 resources per file.</li>\n<li>By default, if the <code>$export</code> operation receives a request that is identical to one that has been recently\nprocessed, it will attempt to reuse the batch job from the former request. A new configuration parameter has been</li>\n<li>introduced that disables this behavior and forces a new batch job on every call.</li>\n<li>Bulk Group export was failing to export Patient resources when Client ID mode was set to: ANY. This has been fixed</li>\n<li>Previously, Bulk Export jobs were always reused, even if completed. Now, jobs are only reused if an identical job is already running, and has not yet completed or failed.</li>\n</ul>\n<h3>Other Operations</h3>\n<ul>\n<li>Extend $member-match to validate matched patient against family name and birthdate</li>\n<li><code>$mdm-submit</code> can now be run as a batch job, which will return a job ID, and can be polled for status. This can be accomplished by sending a <code>Prefer: respond-async</code> header with the request.</li>\n<li>Previously, if the <code>$reindex</code> operation failed with a <code>ResourceVersionConflictException</code> the related<br />\nbatch job would fail. This has been corrected by adding 10 retry attempts for transactions that have\nfailed with a <code>ResourceVersionConflictException</code> during the <code>$reindex</code> operation. In addition, the <code>ResourceIdListStep</code>\nwas submitting one more resource than expected (i.e. 1001 records processed during a <code>$reindex</code> operation if only 1000\n<code>Resources</code> were in the database). This has been corrected.</li>\n</ul>\n<h3>CLI Tool changes:</h3>\n<ul>\n<li>Added a new optional parameter to the <code>upload-terminology</code> operation of the HAPI-FHIR CLI. you can pass the <code>-s</code> or <code>--size</code> parameter to specify\nthe maximum size that will be transmitted to the server, before a local file reference is used. This parameter can be filled in using human-readable format, for example:\n<code>upload-terminology -s \\"1GB\\"</code> will permit zip files up to 1 gigabyte, and anything larger than that would default to using a local file reference.</li>\n<li>Previously, using the <code>import-csv-to-conceptmap</code> command in the CLI successfully created ConceptMap resources\nwithout a <code>ConceptMap.status</code> element, which is against the FHIR specification. This has been fixed by adding a required\noption for status for the command.</li>\n<li>Added support for -l parameter for providing a local validation profile in the HAPI FHIR CLI.</li>\n<li>Previously, when the upload-terminology command was used to upload a terminology file with endpoint validation enabled, a validation error occurred due to a missing file content type.\nThis has been fixed by specifying the file content type of the uploaded file.</li>\n<li>For SNOMED CT, upload-terminology now supports both Canadian and International edition's file names for the SCT Description File</li>\n<li>Documentation was added for <code>reindex-terminology</code> command.</li>\n</ul>\n<h3>JPA Server General Changes</h3>\n<ul>\n<li>Changed Minimum Size (bytes) in FHIR Binary Storage of the persistence module from an integer to a long. This will permit larger binaries.</li>\n<li>Previously, if a FullTextSearchSvcImpl was defined, but was disabled via configuration, there could be data loss when reindexing due to transaction rollbacks. This has been corrected. Thanks to @dyoung-work for the fix!</li>\n<li>Fixed a bug where the $everything operation on Patient instances and the Patient type was not correctly propagating the transactional semantics. This was causing callers to not be in a transactional context.</li>\n<li>Previously when updating a phonetic search parameter, any existing resource will not have its search parameter String updated upon reindex if the normalized String is the same letter as under the old algorithm (ex JN to JAN). Searching on the new normalized String was failing to return results. This has been corrected.</li>\n<li>Previously, when creating a <code>DocumentReference</code> with an <code>Attachment</code> containing a URL over 254 characters\nan error was thrown. This has been corrected and now an <code>Attachment</code> URL can be up to 500 characters.</li>\n</ul>\n<h3>JPA Server Performance Changes</h3>\n<ul>\n<li>Initial page loading has been optimized to reduce the number of prefetched resources. This should improve the speed of initial search queries in many cases.</li>\n<li>Cascading deletes don't work correctly if multiple threads initiate a delete at the same time. Either the resource won't be found or there will be a collision on inserting the new version. This changes fixes the problem by better handling these conditions to either ignore an already deleted resource or to keep retrying in a new inner transaction.</li>\n<li>When using SearchNarrowingInterceptor, FHIR batch operations with a large number\nof conditional create/update entries exhibited very slow performance due to an\nunnecessary nested loop. This has been corrected.</li>\n<li>When using ForcedOffsetSearchModeInterceptor, any synchronous searches initiated programmatically (i.e. through the\ninternal java API, not the REST API) will not be modified. This prevents issues when a java call requests a synchronous\nsearch larger than the default offset search page size</li>\n<li>Previously, when using _offset, the queries will result in short pages, and repeats results on different pages.\nThis has now been fixed.</li>\n<li>Processing for <code>_include</code> and <code>_revinclude</code> parameters in the JPA server has been streamlined, which should\nimprove performance on systems where includes are heavily used.</li>\n</ul>\n<h3>Database-specific Changes</h3>\n<ul>\n<li>Database migration steps were failing with Oracle 19C. This has been fixed by allowing the database engine to skip dropping non-existent indexes.</li>\n</ul>\n<h3>Terminology Server, Fulltext Search, and Validation Changes</h3>\n<ul>\n<li>With Elasticsearch configured, including terminology, an exception was raised while expanding a ValueSet\nwith more than 10,000 concepts. This has now been fixed.</li>\n<li>Previously when ValueSets were pre-expanded after loinc terminology upload, expansion was failing with an exception for each ValueSet\nwith more than 10,000 properties. This problem has been fixed.\nThis fix changed some freetext mappings (definitions about how resources are freetext indexed) for terminology resources, which requires\nreindexing those resources. To do this use the <code>reindex-terminology</code> command."</li>\n<li>Added support for AWS OpenSearch to Fulltext Search. If an AWS Region is configured, HAPI-FHIR will assume you intend to connect to an AWS-managed OpenSearch instance, and will use\nAmazon's <a href=\"https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/auth/DefaultAWSCredentialsProviderChain.html\">DefaultAwsCredentialsProviderChain</a> to authenticate against it. If both username and password are provided, HAPI-FHIR will attempt to use them as a static credentials provider.</li>\n<li>Search for strings with <code>:text</code> qualifier was not performing advanced search. This has been corrected.</li>\n<li>LOINC terminology upload process was enhanced to consider 24 additional properties which were defined in\nloinc.csv file but not uploaded.</li>\n<li>LOINC terminology upload process was enhanced by loading <code>MAP_TO</code> properties defined in MapTo.csv input file to TermConcept(s).</li>\n</ul>\n<h3>MDM (Master Data Management)</h3>\n<ul>\n<li>MDM messages were using the resource id as a message key when it should be using the EID as a partition hash key.\nThis could lead to duplicate golden resources on systems using Kafka as a message broker.</li>\n<li><code>$mdm-submit</code> can now be run as a batch job, which will return a job ID, and can be polled for status. This can be accomplished by sending a <code>Prefer: respond-async</code> header with the request.</li>\n</ul>\n<h3>Batch Framework</h3>\n<ul>\n<li>Fast-tracking batch jobs that produced only one chunk has been rewritten to use Quartz triggerJob. This will\nensure that at most one thread is updating job status at a time. Also jobs that had FAILED, ERRORED, or been CANCELLED\ncould be accidentally set back to IN_PROGRESS; this has been corrected</li>\n<li>All Spring Batch dependencies and services have been removed. Async processing has fully migrated to Batch 2.</li>\n<li>In HAPI-FHIR 6.1.0, a regression was introduced into bulk export causing exports beyond the first one to fail in strange ways. This has been corrected.</li>\n<li>A remove method has been added to the Batch2 job registry. This will allow for dynamic job registration\nin the future.</li>\n<li>Batch2 jobs were incorrectly prevented from transitioning from ERRORED to COMPLETE status.</li>\n</ul>\n<h3>Package Registry</h3>\n<ul>\n<li>Provided the ability to have the NPM package installer skip installing a package if it is already installed and matches the version requested. This can be controlled by\nthe <code>reloadExisting</code> attribute in PackageInstallationSpec. It defaults to <code>true</code>, which is the existing behaviour. Thanks to Craig McClendon (@XcrigX) for the contribution!</li>\n</ul>\n"} ]}}, {"fullUrl": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication/20220519_hapi_fhir_6_0_0","resource": {"resourceType": "Communication","id": "20220519_hapi_fhir_6_0_0","meta": {"versionId": "1","tag": [ {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Release"} ]},"language": "en","text": {"status": "generated","div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Welcome to a new major release of HAPI FHIR! Since there are many breaking changes, we are making this a major release.</p>\n<h3>Breaking Changes</h3>\n<ul>\n<li>Support for Java 8 has been dropped. A minimum of Java 11 is now required for HAPI FHIR. Java 17 is also supported.</li>\n<li>Database indexes have been completely reworked for Search Index tables. This should result in significantly faster searches in most use cases.</li>\n<li>A new batch operation framework for executing long running background jobs has been created. This new framework is called 'Batch2', and will eventually replace Spring Batch. This framework is intended to be much more resilient to failures as well as much more paralellized than Spring Batch job.</li>\n</ul>\n<h3>Security Changes</h3>\n<ul>\n<li>Previously, it was possible to update a resource with wrong <code>tenantID</code>. This issue has been fixed.</li>\n<li>User was permitted to bulk export all groups/patients when they were unauthorized. This issue has been fixed.</li>\n<li>The Spring Framework library was upgraded to version 5.3.18 in order to avoid depending on a version known to be vulnerable to CVE-2022-22965, known as Spring4Shell. HAPI FHIR is not believed to be vulnerable to this issue, but the library has been bumped as a precaution.</li>\n</ul>\n<h3>General Client/Server/Parser Changes</h3>\n<ul>\n<li>Added search parameter modifier :nickname that can be used with 'name' or 'given' search parameters.</li>\n<li>Added a new pointcut: <code>STORAGE_PRESTORAGE_CLIENT_ASSIGNED_ID</code> which is invoked when a user attempts to create a resource with a client-assigned ID.</li>\n<li>The XML and JSON Parsers are now encoding narratives of contained resources. Narratives were skipped before for contained resources.</li>\n<li>Include property regex operation was not working when expanding ValueSet. This is now fixed</li>\n<li>When performing a search with a <code>_revinclude</code>. the results sometimes incorrectly included resources that were reverse included by other search parameters with the same name. Thanks to GitHub user @vivektk84 for reporting and to Jean-Francois Briere for proposing a fix.</li>\n<li>The HAPI FHIR server GraphQL endpoints now support GraphQL introspection, making them much easier to use with GraphQL-capable IDEs.</li>\n<li>Support has been added to the JPA server for token <code>:not-in</code> queries.</li>\n<li>SearchNarrowingInterceptor can now be used to automatically narrow searches to include a <code>code:in</code> or <code>code:not-in</code> expression, for mandating that results must be in a specified list of codes.</li>\n<li>Support has now (finally!) been added for the FHIR Bulk Import ($import) operation.</li>\n<li>A consent service implementation that enforces search narrowing rules specified by the SearchNarrowingInterceptor has been added.</li>\n<li><code>GET</code> resource with <code>_total=accurate</code> and <code>_summary=count</code> if consent service enabled should throw an InvalidRequestException. This issue has been fixed.</li>\n<li>Reindexing jobs were not respecting the passed in date range in SearchParams. We now take date these date ranges into account when running re-indexing jobs.</li>\n<li>The server now supports date searches with the NOT_EQUALS (<code>ne</code>) prefix.</li>\n<li>Previously the Fhir parser would only set the resource type on the resource ID for resources which implemented <code>IDomainResource</code>. This caused a few resource types to be missed. This has been corrected, and resource type is now set on the id element for all <code>IBaseResource</code> instances instead.</li>\n</ul>\n<h3>CLI Tool changes:</h3>\n<ul>\n<li>Previously there was no way to recreate freetext indexes for terminology entities. A new CLI operation, reindex-terminology now exists for this purpose.</li>\n</ul>\n<h3>JPA Server General Changes</h3>\n<ul>\n<li>_include now supports canonicals as well as standard references.</li>\n<li>The resource JSON can now be stored and retrieved in the Lucene/Elasticsearch index. This enables some queries to provide results without using the database. This is enabled via <code>JpaStorageSettings.setStoreResourceInLuceneIndex()</code></li>\n<li>An occasional concurrency failure in AuthorizationInterceptor has been resolved. Thanks to Martin Visser for reporting and providing a reproducible test case!</li>\n<li>When cross-partition reference Mode is used, the rest-hook subscriptions on a partition enabled server would cause a NPE. This has been resolved.</li>\n<li>Group Bulk Export (e.g. Group/123/$export) now additionally supports Organization and Practitioner as valid _type parameters. This works internally by querying using a <code>_has</code> parameter</li>\n</ul>\n<h3>JPA Server Performance Changes</h3>\n<ul>\n<li>When deleting a large ValueSet operation was timing out. This issue has been fixed.</li>\n<li>Performance for JPA Server ValueSet expansion has been significantly optimized in order to minimize database lookups, especially with large expansions.</li>\n<li>When using JPA persistence with Hibernate Search (Lucene or Elasticsearch), simple FHIR queries that can be satisfied completely by Hibernate Search no longer query the database.</li>\n<li>Added a new setting to BinaryStorageInterceptor which allows you to disable binary de-externalization during resource reads.</li>\n</ul>\n<h3>Database-specific Changes</h3>\n<ul>\n<li>When searching for date search parameters on Postgres, ordinals could sometimes be represented as strings, causing a search failure. This has been corrected.</li>\n<li>A regression in HAPI FHIR 5.5.0 meant that very large transactions where the bundle contained over 1000 distinct client-assigned resource IDs could fail on MSSQL and Oracle due to SQL parameter count limitations.</li>\n</ul>\n<h3>Terminology Server and Validation Changes</h3>\n<ul>\n<li>ValueSet pre-expansion was failing when number of concepts was larger than configured BooleanQuery.maxClauseCount value (default is 1024). This is now fixed.</li>\n<li>A regression in HAPI FHIR 5.7.0 meant that when UnknownCodeSystemWarningValidationSupport was configured for WARNING behaviour, validating a field with an implicit code system could incorrectly result in an error.</li>\n<li>We now Provide a Remote Terminology Service implementation for the $translate operation.</li>\n<li>The JPA server terminology service can now process IS-A filters in ValueSet expansion on servers with Hibernate Search disabled.</li>\n<li>HAPI-FHIR no longer performs Repository Validation on resources that are implicitly created, e.g. placeholder resources.</li>\n</ul>\n</div>"},"status": "completed","sent": "2022-05-19T08:00:00-05:00","sender": {"reference": "https://smilecdr.com/about_us/#james","display": "James Agnew"},"payload": [ {"contentString": "<p>Welcome to a new major release of HAPI FHIR! Since there are many breaking changes, we are making this a major release.</p>\n<h3>Breaking Changes</h3>\n<ul>\n<li>Support for Java 8 has been dropped. A minimum of Java 11 is now required for HAPI FHIR. Java 17 is also supported.</li>\n<li>Database indexes have been completely reworked for Search Index tables. This should result in significantly faster searches in most use cases.</li>\n<li>A new batch operation framework for executing long running background jobs has been created. This new framework is called 'Batch2', and will eventually replace Spring Batch. This framework is intended to be much more resilient to failures as well as much more paralellized than Spring Batch job.</li>\n</ul>\n<h3>Security Changes</h3>\n<ul>\n<li>Previously, it was possible to update a resource with wrong <code>tenantID</code>. This issue has been fixed.</li>\n<li>User was permitted to bulk export all groups/patients when they were unauthorized. This issue has been fixed.</li>\n<li>The Spring Framework library was upgraded to version 5.3.18 in order to avoid depending on a version known to be vulnerable to CVE-2022-22965, known as Spring4Shell. HAPI FHIR is not believed to be vulnerable to this issue, but the library has been bumped as a precaution.</li>\n</ul>\n<h3>General Client/Server/Parser Changes</h3>\n<ul>\n<li>Added search parameter modifier :nickname that can be used with 'name' or 'given' search parameters.</li>\n<li>Added a new pointcut: <code>STORAGE_PRESTORAGE_CLIENT_ASSIGNED_ID</code> which is invoked when a user attempts to create a resource with a client-assigned ID.</li>\n<li>The XML and JSON Parsers are now encoding narratives of contained resources. Narratives were skipped before for contained resources.</li>\n<li>Include property regex operation was not working when expanding ValueSet. This is now fixed</li>\n<li>When performing a search with a <code>_revinclude</code>. the results sometimes incorrectly included resources that were reverse included by other search parameters with the same name. Thanks to GitHub user @vivektk84 for reporting and to Jean-Francois Briere for proposing a fix.</li>\n<li>The HAPI FHIR server GraphQL endpoints now support GraphQL introspection, making them much easier to use with GraphQL-capable IDEs.</li>\n<li>Support has been added to the JPA server for token <code>:not-in</code> queries.</li>\n<li>SearchNarrowingInterceptor can now be used to automatically narrow searches to include a <code>code:in</code> or <code>code:not-in</code> expression, for mandating that results must be in a specified list of codes.</li>\n<li>Support has now (finally!) been added for the FHIR Bulk Import ($import) operation.</li>\n<li>A consent service implementation that enforces search narrowing rules specified by the SearchNarrowingInterceptor has been added.</li>\n<li><code>GET</code> resource with <code>_total=accurate</code> and <code>_summary=count</code> if consent service enabled should throw an InvalidRequestException. This issue has been fixed.</li>\n<li>Reindexing jobs were not respecting the passed in date range in SearchParams. We now take date these date ranges into account when running re-indexing jobs.</li>\n<li>The server now supports date searches with the NOT_EQUALS (<code>ne</code>) prefix.</li>\n<li>Previously the Fhir parser would only set the resource type on the resource ID for resources which implemented <code>IDomainResource</code>. This caused a few resource types to be missed. This has been corrected, and resource type is now set on the id element for all <code>IBaseResource</code> instances instead.</li>\n</ul>\n<h3>CLI Tool changes:</h3>\n<ul>\n<li>Previously there was no way to recreate freetext indexes for terminology entities. A new CLI operation, reindex-terminology now exists for this purpose.</li>\n</ul>\n<h3>JPA Server General Changes</h3>\n<ul>\n<li>_include now supports canonicals as well as standard references.</li>\n<li>The resource JSON can now be stored and retrieved in the Lucene/Elasticsearch index. This enables some queries to provide results without using the database. This is enabled via <code>JpaStorageSettings.setStoreResourceInLuceneIndex()</code></li>\n<li>An occasional concurrency failure in AuthorizationInterceptor has been resolved. Thanks to Martin Visser for reporting and providing a reproducible test case!</li>\n<li>When cross-partition reference Mode is used, the rest-hook subscriptions on a partition enabled server would cause a NPE. This has been resolved.</li>\n<li>Group Bulk Export (e.g. Group/123/$export) now additionally supports Organization and Practitioner as valid _type parameters. This works internally by querying using a <code>_has</code> parameter</li>\n</ul>\n<h3>JPA Server Performance Changes</h3>\n<ul>\n<li>When deleting a large ValueSet operation was timing out. This issue has been fixed.</li>\n<li>Performance for JPA Server ValueSet expansion has been significantly optimized in order to minimize database lookups, especially with large expansions.</li>\n<li>When using JPA persistence with Hibernate Search (Lucene or Elasticsearch), simple FHIR queries that can be satisfied completely by Hibernate Search no longer query the database.</li>\n<li>Added a new setting to BinaryStorageInterceptor which allows you to disable binary de-externalization during resource reads.</li>\n</ul>\n<h3>Database-specific Changes</h3>\n<ul>\n<li>When searching for date search parameters on Postgres, ordinals could sometimes be represented as strings, causing a search failure. This has been corrected.</li>\n<li>A regression in HAPI FHIR 5.5.0 meant that very large transactions where the bundle contained over 1000 distinct client-assigned resource IDs could fail on MSSQL and Oracle due to SQL parameter count limitations.</li>\n</ul>\n<h3>Terminology Server and Validation Changes</h3>\n<ul>\n<li>ValueSet pre-expansion was failing when number of concepts was larger than configured BooleanQuery.maxClauseCount value (default is 1024). This is now fixed.</li>\n<li>A regression in HAPI FHIR 5.7.0 meant that when UnknownCodeSystemWarningValidationSupport was configured for WARNING behaviour, validating a field with an implicit code system could incorrectly result in an error.</li>\n<li>We now Provide a Remote Terminology Service implementation for the $translate operation.</li>\n<li>The JPA server terminology service can now process IS-A filters in ValueSet expansion on servers with Hibernate Search disabled.</li>\n<li>HAPI-FHIR no longer performs Repository Validation on resources that are implicitly created, e.g. placeholder resources.</li>\n</ul>\n"} ]}}, {"fullUrl": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication/20211118_hapi_fhir_5_6_0","resource": {"resourceType": "Communication","id": "20211118_hapi_fhir_5_6_0","meta": {"versionId": "1","tag": [ {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Release"} ]},"language": "en","text": {"status": "generated","div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Welcome to the winter-ish release of HAPI-FHIR 5.6.0!</p>\n<p>HAPI FHIR 5.6.0 (Codename: Raccoon) brings a whole bunch of great new features, bugfixes, and more.</p>\n<p>Highlights of this release are shown below. See the <a href=\"https://hapifhir.io/hapi-fhir/docs/introduction/changelog.html\">Changelog</a> for a complete list. There will be a live Webinar (recording available on-demand afterward) on August 18 2021. Details available here: https://www.smilecdr.com/quarterly-product-release-webinar-reminder</p>\n<h3>Security Changes</h3>\n<ul>\n<li>Add new RuleBuilder options which allow you to specify additional resources and search parameters which match a given compartment. More explanations of the enhancements can be found in <a href=\"/hapi-fhir/docs/security/authorization_interceptor.html#advanced-compartment-authorization\">the documentation</a>.</li>\n<li>Previously, when a search query explicitly includes a search parameter that is for the same resource type but a different resource instance from the one(s) specified on the authorized list, the search narrowing interceptor would include both search parameters in the final query, resulting in an empty bundle being returned to the caller. Now, such a call will result in a 403 Forbidden error, making it more clear why no resources were returned.</li>\n<li>Inline match URL searches (e.g. search URLs for conditional creates, conditional updates, etc.) are now subject to the same security and access control checks as other searches.</li>\n</ul>\n<h3>General Client/Server/Parser Changes</h3>\n<ul>\n<li>HAPI-FHIR will now index canonical references if the base url is set via property.</li>\n<li>Added displayLanguage support for CodeSystem $lookup operation.</li>\n<li>Loosened BCP47 validation to permit languages that are without region, e.g. <code>nl</code> instead of <code>nl-DE</code> or <code>nl-NL</code>.</li>\n<li>Previously, <code>%</code> symbol was causing searches to fail to return results. This has been corrected.</li>\n<li>Added an NDJSON parser.</li>\n<li>Previously, the package registry would not work correctly when externalized binary storage was enabled. This has been corrected.</li>\n</ul>\n<h3>CLI Tool changes:</h3>\n<ul>\n<li>This PR eliminates the search coordinator threadpool, and executes searches synchronously on the HTTP client thread.</li>\n</ul>\n<h3>JPA Server General Changes</h3>\n<ul>\n<li>Improved ordinal date searches to handle lower granularity MONTH and YEAR searches.</li>\n<li>Support for the <code>_language</code> search parameter has been dropped.</li>\n<li>FHIR Batch transaction GET operations are now executed in parallel where applicable.</li>\n<li>Fixed a regression which causes transactions with multiple identical ifNoneExist clauses to create duplicate data.</li>\n<li>Added the ability for Hibernate Search to prefix all elasticsearch tables it creates, allowing you to have multiple HAPI-FHIR's using the same elasticsearch instance.</li>\n<li>Support has been added for chained searches traversing contained resources much more effectively.</li>\n<li>Experimental additions have been made to search parameter indexing in lucene. These can be enabled via advanced property.</li>\n<li>Fixed a critical bug with Postgresql database which caused the VACUUMLO tool to delete data.</li>\n<li>A new <code>_id</code> parameter has been added to the Patient/$everything type-level operation so you can narrow down a specific list of patient IDs to export.</li>\n</ul>\n<h3>JPA Server Partitioning Changes</h3>\n<ul>\n<li>Swagger UI is now supported in partitioned servers</li>\n</ul>\n<h3>Terminology Server and Validation Changes</h3>\n<ul>\n<li>Provided a Remote Terminology Service implementation for the $lookup Operation.</li>\n<li>Support added for uploading non-current versions of LOINC ValueSets</li>\n</ul>\n<h3>JPA Server MDM Enhancements</h3>\n<ul>\n<li><code>_mdm</code> parameter support has been added to the $everything operation.</li>\n<li>Modified the MDM_AFTER_PERSISTED_RESOURCE_CHECKED pointcut to include additional information.</li>\n<li>The <code>$mdm-clear</code> operation has been refactor to use spring batch.</li>\n<li>Added <code>$mdm-create-link</code> operation.</li>\n</ul>\n</div>"},"status": "completed","sent": "2021-11-18T08:00:00-05:00","sender": {"reference": "https://smilecdr.com/about_us/#james","display": "James Agnew"},"payload": [ {"contentString": "<p>Welcome to the winter-ish release of HAPI-FHIR 5.6.0!</p>\n<p>HAPI FHIR 5.6.0 (Codename: Raccoon) brings a whole bunch of great new features, bugfixes, and more.</p>\n<p>Highlights of this release are shown below. See the <a href=\"https://hapifhir.io/hapi-fhir/docs/introduction/changelog.html\">Changelog</a> for a complete list. There will be a live Webinar (recording available on-demand afterward) on August 18 2021. Details available here: https://www.smilecdr.com/quarterly-product-release-webinar-reminder</p>\n<h3>Security Changes</h3>\n<ul>\n<li>Add new RuleBuilder options which allow you to specify additional resources and search parameters which match a given compartment. More explanations of the enhancements can be found in <a href=\"/hapi-fhir/docs/security/authorization_interceptor.html#advanced-compartment-authorization\">the documentation</a>.</li>\n<li>Previously, when a search query explicitly includes a search parameter that is for the same resource type but a different resource instance from the one(s) specified on the authorized list, the search narrowing interceptor would include both search parameters in the final query, resulting in an empty bundle being returned to the caller. Now, such a call will result in a 403 Forbidden error, making it more clear why no resources were returned.</li>\n<li>Inline match URL searches (e.g. search URLs for conditional creates, conditional updates, etc.) are now subject to the same security and access control checks as other searches.</li>\n</ul>\n<h3>General Client/Server/Parser Changes</h3>\n<ul>\n<li>HAPI-FHIR will now index canonical references if the base url is set via property.</li>\n<li>Added displayLanguage support for CodeSystem $lookup operation.</li>\n<li>Loosened BCP47 validation to permit languages that are without region, e.g. <code>nl</code> instead of <code>nl-DE</code> or <code>nl-NL</code>.</li>\n<li>Previously, <code>%</code> symbol was causing searches to fail to return results. This has been corrected.</li>\n<li>Added an NDJSON parser.</li>\n<li>Previously, the package registry would not work correctly when externalized binary storage was enabled. This has been corrected.</li>\n</ul>\n<h3>CLI Tool changes:</h3>\n<ul>\n<li>This PR eliminates the search coordinator threadpool, and executes searches synchronously on the HTTP client thread.</li>\n</ul>\n<h3>JPA Server General Changes</h3>\n<ul>\n<li>Improved ordinal date searches to handle lower granularity MONTH and YEAR searches.</li>\n<li>Support for the <code>_language</code> search parameter has been dropped.</li>\n<li>FHIR Batch transaction GET operations are now executed in parallel where applicable.</li>\n<li>Fixed a regression which causes transactions with multiple identical ifNoneExist clauses to create duplicate data.</li>\n<li>Added the ability for Hibernate Search to prefix all elasticsearch tables it creates, allowing you to have multiple HAPI-FHIR's using the same elasticsearch instance.</li>\n<li>Support has been added for chained searches traversing contained resources much more effectively.</li>\n<li>Experimental additions have been made to search parameter indexing in lucene. These can be enabled via advanced property.</li>\n<li>Fixed a critical bug with Postgresql database which caused the VACUUMLO tool to delete data.</li>\n<li>A new <code>_id</code> parameter has been added to the Patient/$everything type-level operation so you can narrow down a specific list of patient IDs to export.</li>\n</ul>\n<h3>JPA Server Partitioning Changes</h3>\n<ul>\n<li>Swagger UI is now supported in partitioned servers</li>\n</ul>\n<h3>Terminology Server and Validation Changes</h3>\n<ul>\n<li>Provided a Remote Terminology Service implementation for the $lookup Operation.</li>\n<li>Support added for uploading non-current versions of LOINC ValueSets</li>\n</ul>\n<h3>JPA Server MDM Enhancements</h3>\n<ul>\n<li><code>_mdm</code> parameter support has been added to the $everything operation.</li>\n<li>Modified the MDM_AFTER_PERSISTED_RESOURCE_CHECKED pointcut to include additional information.</li>\n<li>The <code>$mdm-clear</code> operation has been refactor to use spring batch.</li>\n<li>Added <code>$mdm-create-link</code> operation.</li>\n</ul>\n"} ]}}, {"fullUrl": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication/20210818_hapi_fhir_5_5_0","resource": {"resourceType": "Communication","id": "20210818_hapi_fhir_5_5_0","meta": {"versionId": "1","tag": [ {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Release"} ]},"language": "en","text": {"status": "generated","div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Another quarter gone by, another HAPI-FHIR release.</p>\n<p>HAPI FHIR 5.5.0 (Codename: Pangolin) brings a whole bunch of great new features, bugfixes, and more.</p>\n<p>Highlights of this release are shown below. See the <a href=\"https://hapifhir.io/hapi-fhir/docs/introduction/changelog.html\">Changelog</a> for a complete list. There will be a live Webinar (recording available on-demand afterward) on August 18 2021. Details available here: https://www.smilecdr.com/quarterly-product-release-webinar-reminder</p>\n<h3>Security Changes</h3>\n<ul>\n<li>Resolved multiple vulnerabilities by updating dependencies.</li>\n</ul>\n<h3>General Client/Server/Parser Changes</h3>\n<ul>\n<li>Added configuration to enable/disable various scheduled tasks.</li>\n<li>Support for qualified * for _include and _revinclude has been added, e.g. <code>_include=Observation:*</code>.</li>\n<li>Flyway migration used to enforce order by default. This has been changed so now the default behaviour is out of order migrations are permitted. Strict order can be enforced via the new strict-order flag if required.</li>\n<li/>\n</ul>\n<h3>CLI Tool changes:</h3>\n<ul>\n<li>Support for multiple header-passthrough option using <strong>-hp</strong> or <strong>--header-passthrough</strong>parameter has been added to hapi-fhir-cli commands: <strong>example-data-uploader</strong>, <strong>export-conceptmap-to-csv</strong>, <strong>import-csv-to-conceptmap</strong> and <strong>upload-terminology</strong></li>\n</ul>\n<h3>JPA Server General Changes</h3>\n<ul>\n<li>DELETE _expunge=true has been converted to a Spring Batch job.</li>\n<li>Added a new setting to JpaStorageSettings called <code>Tag Versioning Mode</code>, which determines how tags are maintained.</li>\n<li>A new tag storage mode called <strong>Inline Tag Mode</strong> tas been added. In this mode, all tags are stored directly in the serialized resource body in the database, instead of using dedicated tables. This has significant performance advantages when storing resources with many distinct tags (i.e. many tags that are unique to each resource, as opposed to being reused across multiple resources).</li>\n<li>A new interceptor has been addeed to the JPA server called <code>ForceOffsetSearchModeInterceptor</code>. This interceptor forces all searches to be offset searches, instead of relying on the query cache.</li>\n<li>Added a new <code>$reindex</code> operation which creates a Spring Batch job to reindex selected resources.</li>\n</ul>\n<h3>JPA Server Performance Changes</h3>\n<ul>\n<li>A new setting has been added to the JpaStorageSettings that allows the maximum number of <code>_include</code> and <code>_revinclude</code> resources to be added to a single search page result. In addition, the include/revinclue processor have been redesigned to avoid accidentally overloading the server if an include/revinclude would return unexpected massive amounts of data.</li>\n<li>When performing non-query cache JPA searches (i.e. searches with <code>Cache-Control: no-store</code>) the loading of <code>_include</code> and <code>_revinclude</code> will now factor the maximum include count."</li>\n<li>Subscriptions will no longer be triggered on unversioned changes.</li>\n<li>A new JpaStorageSettings setting called Mass Ingestion Mode has been added. This mode enables rapid data ingestion by skipping a number of unnecessary checks during backloading.</li>\n<li>FHIR Transactions with writes in them will now aggressively pre-fetch as many entities as possible at the start of processing. This reduces the number of database roundtrips.</li>\n<li>A new interceptor has been added for JPA servers that uses semaphores to avoid multiple concurrent FHIR transactions from trying to create/update the same resource at the same time. This can improve overall performance when writing many concurrent transactions since it avoids the need for retries.</li>\n</ul>\n<h3>JPA Server Partitioning Changes</h3>\n<ul>\n<li>PatientIdPartitionInterceptor now supports conditional creates of resources where the resource is in the patient compartment but the conditional URL does not contain a patietn reference.</li>\n<li>The $evaluate-measure now works on a partitioned server.</li>\n</ul>\n<h3>Terminology Server and Validation Changes</h3>\n<ul>\n<li>Added support for ICD-10-CM.</li>\n<li>A new interceptor ValidationMessageSuppressingInterceptor has been added. This interceptor can be used to selectively suppress specific vaLidation messages.</li>\n<li>Support for LOINC 2.70 has been added.</li>\n<li>Fixed a bug where ValueSet expansion did not correctly preserve order if multiple codes were included in a single inclusion block.</li>\n<li>A new Validation Support Module has been added that can use NPM Packages to supply validation conformance artifacts programatically to the validator."</li>\n</ul>\n<h3>JPA Server MDM Enhancements</h3>\n<ul>\n<li>Too many MDM candidates matching could result in an OutOfMemoryError. Candidate matching is now limited to the value of IMdmSettings.getCandidateSearchLimit(), default 10000.</li>\n<li>Searches for mdm-expanded references such as Observation?subject:mdm=123 were getting denied by access rules that did not recognize the :mdm suffix. This has been corrected.</li>\n<li>$mdm-submit operation was only submitting 100 resources and then stopping. It now correctly submits all\nrequested resources.</li>\n</ul>\n</div>"},"status": "completed","sent": "2021-08-19T08:00:00-05:00","sender": {"reference": "https://smilecdr.com/about_us/#james","display": "James Agnew"},"payload": [ {"contentString": "<p>Another quarter gone by, another HAPI-FHIR release.</p>\n<p>HAPI FHIR 5.5.0 (Codename: Pangolin) brings a whole bunch of great new features, bugfixes, and more.</p>\n<p>Highlights of this release are shown below. See the <a href=\"https://hapifhir.io/hapi-fhir/docs/introduction/changelog.html\">Changelog</a> for a complete list. There will be a live Webinar (recording available on-demand afterward) on August 18 2021. Details available here: https://www.smilecdr.com/quarterly-product-release-webinar-reminder</p>\n<h3>Security Changes</h3>\n<ul>\n<li>Resolved multiple vulnerabilities by updating dependencies.</li>\n</ul>\n<h3>General Client/Server/Parser Changes</h3>\n<ul>\n<li>Added configuration to enable/disable various scheduled tasks.</li>\n<li>Support for qualified * for _include and _revinclude has been added, e.g. <code>_include=Observation:*</code>.</li>\n<li>Flyway migration used to enforce order by default. This has been changed so now the default behaviour is out of order migrations are permitted. Strict order can be enforced via the new strict-order flag if required.</li>\n<li></li>\n</ul>\n<h3>CLI Tool changes:</h3>\n<ul>\n<li>Support for multiple header-passthrough option using <strong>-hp</strong> or <strong>--header-passthrough</strong>parameter has been added to hapi-fhir-cli commands: <strong>example-data-uploader</strong>, <strong>export-conceptmap-to-csv</strong>, <strong>import-csv-to-conceptmap</strong> and <strong>upload-terminology</strong></li>\n</ul>\n<h3>JPA Server General Changes</h3>\n<ul>\n<li>DELETE _expunge=true has been converted to a Spring Batch job.</li>\n<li>Added a new setting to JpaStorageSettings called <code>Tag Versioning Mode</code>, which determines how tags are maintained.</li>\n<li>A new tag storage mode called <strong>Inline Tag Mode</strong> tas been added. In this mode, all tags are stored directly in the serialized resource body in the database, instead of using dedicated tables. This has significant performance advantages when storing resources with many distinct tags (i.e. many tags that are unique to each resource, as opposed to being reused across multiple resources).</li>\n<li>A new interceptor has been addeed to the JPA server called <code>ForceOffsetSearchModeInterceptor</code>. This interceptor forces all searches to be offset searches, instead of relying on the query cache.</li>\n<li>Added a new <code>$reindex</code> operation which creates a Spring Batch job to reindex selected resources.</li>\n</ul>\n<h3>JPA Server Performance Changes</h3>\n<ul>\n<li>A new setting has been added to the JpaStorageSettings that allows the maximum number of <code>_include</code> and <code>_revinclude</code> resources to be added to a single search page result. In addition, the include/revinclue processor have been redesigned to avoid accidentally overloading the server if an include/revinclude would return unexpected massive amounts of data.</li>\n<li>When performing non-query cache JPA searches (i.e. searches with <code>Cache-Control: no-store</code>) the loading of <code>_include</code> and <code>_revinclude</code> will now factor the maximum include count."</li>\n<li>Subscriptions will no longer be triggered on unversioned changes.</li>\n<li>A new JpaStorageSettings setting called Mass Ingestion Mode has been added. This mode enables rapid data ingestion by skipping a number of unnecessary checks during backloading.</li>\n<li>FHIR Transactions with writes in them will now aggressively pre-fetch as many entities as possible at the start of processing. This reduces the number of database roundtrips.</li>\n<li>A new interceptor has been added for JPA servers that uses semaphores to avoid multiple concurrent FHIR transactions from trying to create/update the same resource at the same time. This can improve overall performance when writing many concurrent transactions since it avoids the need for retries.</li>\n</ul>\n<h3>JPA Server Partitioning Changes</h3>\n<ul>\n<li>PatientIdPartitionInterceptor now supports conditional creates of resources where the resource is in the patient compartment but the conditional URL does not contain a patietn reference.</li>\n<li>The $evaluate-measure now works on a partitioned server.</li>\n</ul>\n<h3>Terminology Server and Validation Changes</h3>\n<ul>\n<li>Added support for ICD-10-CM.</li>\n<li>A new interceptor ValidationMessageSuppressingInterceptor has been added. This interceptor can be used to selectively suppress specific vaLidation messages.</li>\n<li>Support for LOINC 2.70 has been added.</li>\n<li>Fixed a bug where ValueSet expansion did not correctly preserve order if multiple codes were included in a single inclusion block.</li>\n<li>A new Validation Support Module has been added that can use NPM Packages to supply validation conformance artifacts programatically to the validator."</li>\n</ul>\n<h3>JPA Server MDM Enhancements</h3>\n<ul>\n<li>Too many MDM candidates matching could result in an OutOfMemoryError. Candidate matching is now limited to the value of IMdmSettings.getCandidateSearchLimit(), default 10000.</li>\n<li>Searches for mdm-expanded references such as Observation?subject:mdm=123 were getting denied by access rules that did not recognize the :mdm suffix. This has been corrected.</li>\n<li>$mdm-submit operation was only submitting 100 resources and then stopping. It now correctly submits all\nrequested resources.</li>\n</ul>\n"} ]}}, {"fullUrl": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication/20210520_hapi_fhir_5_4_0","resource": {"resourceType": "Communication","id": "20210520_hapi_fhir_5_4_0","meta": {"versionId": "1","tag": [ {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Release"} ]},"language": "en","text": {"status": "generated","div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>It's time for another release of HAPI FHIR.</p>\n<p>HAPI FHIR 5.4.0 (Codename: Pangolin) brings a whole bunch of great new features, bugfixes, and more.</p>\n<p>Highlights of this release are shown below. See the <a href=\"https://hapifhir.io/hapi-fhir/docs/introduction/changelog.html\">Changelog</a> for a complete list. There will be a live Webinar (recording available on-demand afterward) on May 20 2021. Details available here: https://www.smilecdr.com/quarterly-product-release-webinar-reminder</p>\n<h3>Security Changes</h3>\n<ul>\n<li>A resource exhaustion vulnerability in the HAPI FHIR JPA server was corrected. Learn more about CVE-2021-32053 <a href=\"https://snyk.io/vuln/SNYK-JAVA-CAUHNHAPIFHIR-1290393\">here</a>. Thanks to Zachary Minneker at Security Innovation for reporting!</li>\n</ul>\n<h3>General Client/Server/Parser Changes</h3>\n<ul>\n<li>HAPI FHIR now supports OpenAPI (aka Swagger). See <a href=\"http://hapi.fhir.org/baseR4/swagger-ui/\">here</a> for an example.</li>\n<li>Normalization and Standardization interceptors have been added. These can be used to normalize selected data fields according to configurable rules prior to storage.</li>\n<li>Contained resources can now reference <em>to</em> containing resources, as allowed in the FHIR Specification. Previously this direction was blocked and contained resources with no incoming reference <em>from</em> the containing resource were automatically stripped, as this style was not permitted in early versions of the FHIR specification. In addition, contained resource order will now be preserved during parsing round-trips.</li>\n<li>New interceptors have been added that can automatically map terminology in response resources using HAPI FHIR terminology services, returning configurable canonical terminology in the response payload.</li>\n<li>Support for the FHIR <code>Prefer: handling=lenient</code> header has been added via an optional interceptor.</li>\n<li>The automatic CapabiityStatement generation has been completely rewritten for R4+ servers. CapabilityStatements now include many new data elements, such as supported profiles, revincludes, resource level operations, and more.</li>\n<li>Token Search Parameters in GraphQL expressions are now correctly parsed.</li>\n</ul>\n<h3>JDK Changes</h3>\n<ul>\n<li>HAPI FHIR now supports JDK 16, and this version is used to execute our CI test suite in order to ensure continued compliance. The minimum Java version required in order to use HAPI FHIR remains JDK 8. This may be updated to JDK 11 in an upcoming release, as many of the libraries we use are now either contemplating or have already completed an upgrade to JDK 11 as a minimum requirement.</li>\n</ul>\n<h3>JPA Server General Changes</h3>\n<ul>\n<li>Support for the <code>_list</code> search parameter has been added to the JPA server</li>\n<li>Support for the <code>:contained</code> modifier has been added, allowing searches to select from data in contained resources found within the resource being searches. Note that this feature is disabled by default and must be enabled if needed.</li>\n<li>The JPA server now supports persisting FHIR extensions in <code>Resource.meta</code></li>\n<li>Bulk Export now supports Patient- and Group- based exports</li>\n<li>Auto-created reference target placeholder resources now include an extension and an identifier if one is known</li>\n<li>A profiling effort led to improvements in performance when processing large FHIR Transaction bundles</li>\n<li>Resources imported into a repository via NPM Packages will now attempt to preserve the resource ID defined in the source package.</li>\n</ul>\n<h3>JPA Server Performance Changes</h3>\n<ul>\n<li>Searches with only a single search parameter now generate a more streamlined SQL expression (one unnecessary JOIN was removed), improving performance.</li>\n<li>A new header <code>X-Upsert-Extistence-Check</code> (note there is a typo in the name, this will be addressed in the next release of HAPI FHIR! Please be aware if you are planning on using this feature) can be added which avoids existence checks when using client assigned IDs to create new records. This can speed up performance.</li>\n</ul>\n<h3>JPA Server Partitioning Changes</h3>\n<ul>\n<li>Resource Reindexing is now supported on partitioned servers.</li>\n<li>FHIR Bulk Export is now supported on partitioned servers (note that this operation is run at the system level and includes data from all partitions. Future enhancements may allow for more nuanced exports on partitioned servers.)</li>\n</ul>\n<h3>Terminology Server and Validation Changes</h3>\n<ul>\n<li>ValueSet expansion can now optionally return codes in the same hierarchy that they are defined in their source CodeSystem.</li>\n<li>Validation can now be configured to return only a warning when a code is found from a CodeSystem that is unknown/unavailable to the validator.</li>\n</ul>\n<h3>JPA Server MDM Enhancements</h3>\n<ul>\n<li>A new search mdm-expansion syntax has been added to FHIR searches on MDM-enabled servers. For example <code>Observation?patient:mdm=Patient/123</code> can be used to search for Observation resources belonging to <code>Patient/123</code> but also to other MDM-linked patient records.</li>\n<li>MDM matching rules can now use FHIRPath expressions as selection criteria.</li>\n<li>A new syntax has been added to Group Bulk Export that allows MDM matching to be used to include matches in the group to export.</li>\n<li>MDM matching rules can now match on extensions, checking the URL and Value for equality.</li>\n<li>A new NUMERIC matcher has been added, allowing matching using numeric values.</li>\n</ul>\n</div>"},"status": "completed","sent": "2021-05-19T08:00:00-05:00","sender": {"reference": "https://smilecdr.com/about_us/#james","display": "James Agnew"},"payload": [ {"contentString": "<p>It's time for another release of HAPI FHIR.</p>\n<p>HAPI FHIR 5.4.0 (Codename: Pangolin) brings a whole bunch of great new features, bugfixes, and more.</p>\n<p>Highlights of this release are shown below. See the <a href=\"https://hapifhir.io/hapi-fhir/docs/introduction/changelog.html\">Changelog</a> for a complete list. There will be a live Webinar (recording available on-demand afterward) on May 20 2021. Details available here: https://www.smilecdr.com/quarterly-product-release-webinar-reminder</p>\n<h3>Security Changes</h3>\n<ul>\n<li>A resource exhaustion vulnerability in the HAPI FHIR JPA server was corrected. Learn more about CVE-2021-32053 <a href=\"https://snyk.io/vuln/SNYK-JAVA-CAUHNHAPIFHIR-1290393\">here</a>. Thanks to Zachary Minneker at Security Innovation for reporting!</li>\n</ul>\n<h3>General Client/Server/Parser Changes</h3>\n<ul>\n<li>HAPI FHIR now supports OpenAPI (aka Swagger). See <a href=\"http://hapi.fhir.org/baseR4/swagger-ui/\">here</a> for an example.</li>\n<li>Normalization and Standardization interceptors have been added. These can be used to normalize selected data fields according to configurable rules prior to storage.</li>\n<li>Contained resources can now reference <em>to</em> containing resources, as allowed in the FHIR Specification. Previously this direction was blocked and contained resources with no incoming reference <em>from</em> the containing resource were automatically stripped, as this style was not permitted in early versions of the FHIR specification. In addition, contained resource order will now be preserved during parsing round-trips.</li>\n<li>New interceptors have been added that can automatically map terminology in response resources using HAPI FHIR terminology services, returning configurable canonical terminology in the response payload.</li>\n<li>Support for the FHIR <code>Prefer: handling=lenient</code> header has been added via an optional interceptor.</li>\n<li>The automatic CapabiityStatement generation has been completely rewritten for R4+ servers. CapabilityStatements now include many new data elements, such as supported profiles, revincludes, resource level operations, and more.</li>\n<li>Token Search Parameters in GraphQL expressions are now correctly parsed.</li>\n</ul>\n<h3>JDK Changes</h3>\n<ul>\n<li>HAPI FHIR now supports JDK 16, and this version is used to execute our CI test suite in order to ensure continued compliance. The minimum Java version required in order to use HAPI FHIR remains JDK 8. This may be updated to JDK 11 in an upcoming release, as many of the libraries we use are now either contemplating or have already completed an upgrade to JDK 11 as a minimum requirement.</li>\n</ul>\n<h3>JPA Server General Changes</h3>\n<ul>\n<li>Support for the <code>_list</code> search parameter has been added to the JPA server</li>\n<li>Support for the <code>:contained</code> modifier has been added, allowing searches to select from data in contained resources found within the resource being searches. Note that this feature is disabled by default and must be enabled if needed.</li>\n<li>The JPA server now supports persisting FHIR extensions in <code>Resource.meta</code></li>\n<li>Bulk Export now supports Patient- and Group- based exports</li>\n<li>Auto-created reference target placeholder resources now include an extension and an identifier if one is known</li>\n<li>A profiling effort led to improvements in performance when processing large FHIR Transaction bundles</li>\n<li>Resources imported into a repository via NPM Packages will now attempt to preserve the resource ID defined in the source package.</li>\n</ul>\n<h3>JPA Server Performance Changes</h3>\n<ul>\n<li>Searches with only a single search parameter now generate a more streamlined SQL expression (one unnecessary JOIN was removed), improving performance.</li>\n<li>A new header <code>X-Upsert-Extistence-Check</code> (note there is a typo in the name, this will be addressed in the next release of HAPI FHIR! Please be aware if you are planning on using this feature) can be added which avoids existence checks when using client assigned IDs to create new records. This can speed up performance.</li>\n</ul>\n<h3>JPA Server Partitioning Changes</h3>\n<ul>\n<li>Resource Reindexing is now supported on partitioned servers.</li>\n<li>FHIR Bulk Export is now supported on partitioned servers (note that this operation is run at the system level and includes data from all partitions. Future enhancements may allow for more nuanced exports on partitioned servers.)</li>\n</ul>\n<h3>Terminology Server and Validation Changes</h3>\n<ul>\n<li>ValueSet expansion can now optionally return codes in the same hierarchy that they are defined in their source CodeSystem.</li>\n<li>Validation can now be configured to return only a warning when a code is found from a CodeSystem that is unknown/unavailable to the validator.</li>\n</ul>\n<h3>JPA Server MDM Enhancements</h3>\n<ul>\n<li>A new search mdm-expansion syntax has been added to FHIR searches on MDM-enabled servers. For example <code>Observation?patient:mdm=Patient/123</code> can be used to search for Observation resources belonging to <code>Patient/123</code> but also to other MDM-linked patient records.</li>\n<li>MDM matching rules can now use FHIRPath expressions as selection criteria.</li>\n<li>A new syntax has been added to Group Bulk Export that allows MDM matching to be used to include matches in the group to export.</li>\n<li>MDM matching rules can now match on extensions, checking the URL and Value for equality.</li>\n<li>A new NUMERIC matcher has been added, allowing matching using numeric values.</li>\n</ul>\n"} ]}}, {"fullUrl": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication/20201119_hapi_fhir_5_2_0","resource": {"resourceType": "Communication","id": "20201119_hapi_fhir_5_2_0","meta": {"versionId": "1","tag": [ {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Release"} ]},"language": "en","text": {"status": "generated","div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>It's August, so it's time for our next quarterly relese: HAPI FHIR 5.2.0 (Codename: Numbat).</p>\n<p>Security Notice:</p>\n<ul>\n<li>Security Issue CVE-2020-24301: An XSS vulnerability has been fixed in the testpage overlay project. This issue affects only the testpage overlay module, but users of this module should upgrade immediately. Note that this issue is addressed in HAPI FHIR 5.1.0 (as well as 5.2.0+) so users who have already upgraded to HAPI FHIR 5.1.0 do not need to upgrade again to resolve this issue. It is listed here as we experienced a delay in obtaining a CVE number.</li>\n</ul>\n<p>Major New Features:</p>\n<ul>\n<li>\n<p>The JPA SearchBuilder (which turns FHIR searches into SQL statements to be executed by the database) has been completely rewritten to not use Hibernate. This allows for much more efficient SQL to be generated in some cases. For some specific queries on a very large test repository running on Postgresql this new search builder performed 10x faster. Note that this new module is enabled by default in HAPI FHIR 5.2.0 but can be disabled via a JpaStorageSettings setting. It is disabled by default in Smile CDR 2020.11.R01 but will be enabled by default in the next major release.</p>\n</li>\n<li>\n<p>Support for RDF Turtle encoding has been added, finally bringing native support for the 3rd official FHIR encoding to HAPI FHIR. This support was contributed by Josh Collins and Eric Prud'hommeaux of the company Janeiro Digital. We greatly appreciate the contribution! To see an example of the RDF encoding: hapi.fhir.org/baseR4/Patient?_format=rdf</p>\n</li>\n</ul>\n<p>Terminology Enhancements:</p>\n<ul>\n<li>\n<p>Integration with remote terminology services has been improved so that required bindings to closed valuesets are no longer delegated to the remote terminology server. This improves performance since there is no need for remote services in this case.</p>\n</li>\n<li>\n<p>The <code>CodeSystem/$validate-code</code> operation has been implemented for R4+ JPA servers.</p>\n</li>\n<li>\n<p>The JPA Terminology Server is now version aware, meaning that multiple versions of a single CodeSystem can now be stored in a single FHIR terminology server repository. ValueSet expansion, CodeSystem lookup, and ConceptMap translation are all now fully version aware. Note that implementing support for fully versioned terminology is mostly complete, but some validation operations may still not work. This should be completed by our next major release.</p>\n</li>\n<li>\n<p>ValueSet expansion with filtering (e.g. using the <code>filter</code> parameter on the <code>$expand</code> operation) has now been implemented in such a way that it fully supports filtering on pre-expanded ValueSets, including using offsets and counts. This is a major improvement for people building picker UIs leveraging the $expand operation.</p>\n</li>\n</ul>\n<p>EMPI Improvements:</p>\n<ul>\n<li>\n<p>Identifier matchers have been added, providing native FHIR support for matching on resource identifiers</p>\n</li>\n<li>\n<p>The <code>$empi-clear</code> operation performance has been greatly improved</p>\n</li>\n</ul>\n<p>Other Notable Improvements:</p>\n<ul>\n<li>\n<p>A new combined "delete+expunge" mode has been added to the DELETE operation in the JPA server. This mode deletes resources and expunges (physically deletes) them in a single fast operation. Note that with this mode must be enabled, and completely bypasses interceptor hooks notifying registered listeners that data is being deletes and expunged. It is several orders of magnitude faster when deleting large sets of data, and is generally intended for test scenarios.</p>\n</li>\n<li>\n<p>The Package Server module now supports installing non-conformance resources from packages.</p>\n</li>\n<li>\n<p>The <code>_typeFilter</code> parameter has been implemented for the $bulk-export module.</p>\n</li>\n</ul>\n<p>As always, see the <a href=\"https://smilecdr.com/hapi-fhir/docs/introduction/changelog.html\">changelog</a> for a full list of changes.</p>\n<p>Thanks to everyone who contributed to this release!</p>\n</div>"},"status": "completed","sent": "2020-11-19T08:00:00-05:00","sender": {"reference": "https://smilecdr.com/about_us/#james","display": "James Agnew"},"payload": [ {"contentString": "<p>It's August, so it's time for our next quarterly relese: HAPI FHIR 5.2.0 (Codename: Numbat).</p>\n<p>Security Notice:</p>\n<ul>\n<li>Security Issue CVE-2020-24301: An XSS vulnerability has been fixed in the testpage overlay project. This issue affects only the testpage overlay module, but users of this module should upgrade immediately. Note that this issue is addressed in HAPI FHIR 5.1.0 (as well as 5.2.0+) so users who have already upgraded to HAPI FHIR 5.1.0 do not need to upgrade again to resolve this issue. It is listed here as we experienced a delay in obtaining a CVE number.</li>\n</ul>\n<p>Major New Features:</p>\n<ul>\n<li>\n<p>The JPA SearchBuilder (which turns FHIR searches into SQL statements to be executed by the database) has been completely rewritten to not use Hibernate. This allows for much more efficient SQL to be generated in some cases. For some specific queries on a very large test repository running on Postgresql this new search builder performed 10x faster. Note that this new module is enabled by default in HAPI FHIR 5.2.0 but can be disabled via a JpaStorageSettings setting. It is disabled by default in Smile CDR 2020.11.R01 but will be enabled by default in the next major release.</p>\n</li>\n<li>\n<p>Support for RDF Turtle encoding has been added, finally bringing native support for the 3rd official FHIR encoding to HAPI FHIR. This support was contributed by Josh Collins and Eric Prud'hommeaux of the company Janeiro Digital. We greatly appreciate the contribution! To see an example of the RDF encoding: hapi.fhir.org/baseR4/Patient?_format=rdf</p>\n</li>\n</ul>\n<p>Terminology Enhancements:</p>\n<ul>\n<li>\n<p>Integration with remote terminology services has been improved so that required bindings to closed valuesets are no longer delegated to the remote terminology server. This improves performance since there is no need for remote services in this case.</p>\n</li>\n<li>\n<p>The <code>CodeSystem/$validate-code</code> operation has been implemented for R4+ JPA servers.</p>\n</li>\n<li>\n<p>The JPA Terminology Server is now version aware, meaning that multiple versions of a single CodeSystem can now be stored in a single FHIR terminology server repository. ValueSet expansion, CodeSystem lookup, and ConceptMap translation are all now fully version aware. Note that implementing support for fully versioned terminology is mostly complete, but some validation operations may still not work. This should be completed by our next major release.</p>\n</li>\n<li>\n<p>ValueSet expansion with filtering (e.g. using the <code>filter</code> parameter on the <code>$expand</code> operation) has now been implemented in such a way that it fully supports filtering on pre-expanded ValueSets, including using offsets and counts. This is a major improvement for people building picker UIs leveraging the $expand operation.</p>\n</li>\n</ul>\n<p>EMPI Improvements:</p>\n<ul>\n<li>\n<p>Identifier matchers have been added, providing native FHIR support for matching on resource identifiers</p>\n</li>\n<li>\n<p>The <code>$empi-clear</code> operation performance has been greatly improved</p>\n</li>\n</ul>\n<p>Other Notable Improvements:</p>\n<ul>\n<li>\n<p>A new combined "delete+expunge" mode has been added to the DELETE operation in the JPA server. This mode deletes resources and expunges (physically deletes) them in a single fast operation. Note that with this mode must be enabled, and completely bypasses interceptor hooks notifying registered listeners that data is being deletes and expunged. It is several orders of magnitude faster when deleting large sets of data, and is generally intended for test scenarios.</p>\n</li>\n<li>\n<p>The Package Server module now supports installing non-conformance resources from packages.</p>\n</li>\n<li>\n<p>The <code>_typeFilter</code> parameter has been implemented for the $bulk-export module.</p>\n</li>\n</ul>\n<p>As always, see the <a href=\"https://smilecdr.com/hapi-fhir/docs/introduction/changelog.html\">changelog</a> for a full list of changes.</p>\n<p>Thanks to everyone who contributed to this release!</p>\n"} ]}}, {"fullUrl": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication/20200813_hapi_fhir_5_1_0","resource": {"resourceType": "Communication","id": "20200813_hapi_fhir_5_1_0","meta": {"versionId": "1","tag": [ {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Release"} ]},"language": "en","text": {"status": "generated","div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>It's August, so it's time for our next quarterly relese: HAPI FHIR 5.2.0 (Codename: Manticore).</p>\n<p>Notable changes in this release include:</p>\n<ul>\n<li>\n<p>An XSS vulnerability has been fixed in the testpage overlay project. This issue affects only the testpage overlay module, but users of this module should upgrade immediately. A CVE number for this issue has been requested and will be updated here when it is assigned.</p>\n</li>\n<li>\n<p>Support for the new FHIR NPM Package spec has been added. Currently this support is limited to JPA servers, and support should be added to plain servers in the next release. Packages can be imported on startup, either by supplying NPM files locally or by downloading them automatically from an NPM server such as <a href=\"https://packages.fhir.org\">packages.fhir.org</a>. Package contents (the StructureDefinition, CodeSystem, ValueSet, etc. resources in the package) can be installed into the repository, or can be stored in a dedicated set of tables and made available to the validator without actually being installed in the repository.</p>\n</li>\n<li>\n<p>Support for the <code>Observation/$lastn</code> operation has been implemented thanks to a partnership with LHNCBC/NIH. This operation uses ElasticSearch to support querying for recent Observations over a set of test codes for one or more patients in a very efficient way.</p>\n</li>\n<li>\n<p>The FHIR PATCH operation now supports <a href=\"https://www.hl7.org/fhir/fhirpatch.html\">FHIRPatch</a> in addition to the already supported XML and JSON Patch specs. FHIRPatch is a very expressive mechanism for creating patches and can be used to supply very precise patches.</p>\n</li>\n<li>\n<p>A new operatiion called <code>$diff</code> has been added. Diff can be used too generate a FHIRPatch diff between two resrouces, or between two versions of the same resource. For example: http://hapi.fhir.org/baseR4/Patient/example/$diff</p>\n</li>\n<li>\n<p>Several performance problems and occasional failures in the resource expunge operation have been corrected</p>\n</li>\n<li>\n<p>The memory use for Subscription delivery queues has been reduced</p>\n</li>\n<li>\n<p>Snapshot generaton now uses a single snapshot generator codebase for generating snapshots across all versions of FHIR. This makes ongoing maintenance much easier and fixes a number of version specific bugs.</p>\n</li>\n<li>\n<p>The maximum cascade depth for cascading deletes is now configurable.</p>\n</li>\n<li>\n<p>AuthorizationInterceptor can now fully authorize GraphQL calls, including allowing/blocking individual resources returned by the graph.</p>\n</li>\n<li>\n<p>GraphQL now supports POST form (thanks to Kholilul Islam!)</p>\n</li>\n<li>\n<p>The LOINC uploader now supports LOINC 2.68</p>\n</li>\n<li>\n<p>A new batch job framework has been introduced, leveraging the Spring Batch library. Initial jobs to use this new framework are the Bulk Export and EMPI modules, but eventually all long processes will be adapted to use this new framework.</p>\n</li>\n<li>\n<p>TThe HAPI FHIR built-in Terminology Server now includes support for validating UCUM (units of measure), BCP-13 (mimetypes), ISO 4217 (currencies), ISO 3166 (countries), and USPS State Codes.</p>\n</li>\n<li>\n<p>It is now possible to disable referential integrity for delete operations for speciific reference paths.</p>\n</li>\n<li>\n<p>A regression has been fixed that significantly degraded validation performance in the JPA server for validation of large numbers of resources.</p>\n</li>\n<li>\n<p>Unit tests have been migrated to JUnit 5. This change has no user visible impacts, but will help us continue to improve ongoing maintenance of our test suites.</p>\n</li>\n</ul>\n<p>As always, see the <a href=\"https://smilecdr.com/hapi-fhir/docs/introduction/changelog.html\">changelog</a> for a full list of changes.</p>\n<p>Thanks to everyone who contributed to this release!</p>\n</div>"},"status": "completed","sent": "2020-08-13T08:00:00-04:00","sender": {"reference": "https://smilecdr.com/about_us/#james","display": "James Agnew"},"payload": [ {"contentString": "<p>It's August, so it's time for our next quarterly relese: HAPI FHIR 5.2.0 (Codename: Manticore).</p>\n<p>Notable changes in this release include:</p>\n<ul>\n<li>\n<p>An XSS vulnerability has been fixed in the testpage overlay project. This issue affects only the testpage overlay module, but users of this module should upgrade immediately. A CVE number for this issue has been requested and will be updated here when it is assigned.</p>\n</li>\n<li>\n<p>Support for the new FHIR NPM Package spec has been added. Currently this support is limited to JPA servers, and support should be added to plain servers in the next release. Packages can be imported on startup, either by supplying NPM files locally or by downloading them automatically from an NPM server such as <a href=\"https://packages.fhir.org\">packages.fhir.org</a>. Package contents (the StructureDefinition, CodeSystem, ValueSet, etc. resources in the package) can be installed into the repository, or can be stored in a dedicated set of tables and made available to the validator without actually being installed in the repository.</p>\n</li>\n<li>\n<p>Support for the <code>Observation/$lastn</code> operation has been implemented thanks to a partnership with LHNCBC/NIH. This operation uses ElasticSearch to support querying for recent Observations over a set of test codes for one or more patients in a very efficient way.</p>\n</li>\n<li>\n<p>The FHIR PATCH operation now supports <a href=\"https://www.hl7.org/fhir/fhirpatch.html\">FHIRPatch</a> in addition to the already supported XML and JSON Patch specs. FHIRPatch is a very expressive mechanism for creating patches and can be used to supply very precise patches.</p>\n</li>\n<li>\n<p>A new operatiion called <code>$diff</code> has been added. Diff can be used too generate a FHIRPatch diff between two resrouces, or between two versions of the same resource. For example: http://hapi.fhir.org/baseR4/Patient/example/$diff</p>\n</li>\n<li>\n<p>Several performance problems and occasional failures in the resource expunge operation have been corrected</p>\n</li>\n<li>\n<p>The memory use for Subscription delivery queues has been reduced</p>\n</li>\n<li>\n<p>Snapshot generaton now uses a single snapshot generator codebase for generating snapshots across all versions of FHIR. This makes ongoing maintenance much easier and fixes a number of version specific bugs.</p>\n</li>\n<li>\n<p>The maximum cascade depth for cascading deletes is now configurable.</p>\n</li>\n<li>\n<p>AuthorizationInterceptor can now fully authorize GraphQL calls, including allowing/blocking individual resources returned by the graph.</p>\n</li>\n<li>\n<p>GraphQL now supports POST form (thanks to Kholilul Islam!)</p>\n</li>\n<li>\n<p>The LOINC uploader now supports LOINC 2.68</p>\n</li>\n<li>\n<p>A new batch job framework has been introduced, leveraging the Spring Batch library. Initial jobs to use this new framework are the Bulk Export and EMPI modules, but eventually all long processes will be adapted to use this new framework.</p>\n</li>\n<li>\n<p>TThe HAPI FHIR built-in Terminology Server now includes support for validating UCUM (units of measure), BCP-13 (mimetypes), ISO 4217 (currencies), ISO 3166 (countries), and USPS State Codes.</p>\n</li>\n<li>\n<p>It is now possible to disable referential integrity for delete operations for speciific reference paths.</p>\n</li>\n<li>\n<p>A regression has been fixed that significantly degraded validation performance in the JPA server for validation of large numbers of resources.</p>\n</li>\n<li>\n<p>Unit tests have been migrated to JUnit 5. This change has no user visible impacts, but will help us continue to improve ongoing maintenance of our test suites.</p>\n</li>\n</ul>\n<p>As always, see the <a href=\"https://smilecdr.com/hapi-fhir/docs/introduction/changelog.html\">changelog</a> for a full list of changes.</p>\n<p>Thanks to everyone who contributed to this release!</p>\n"} ]}}, {"fullUrl": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication/20200602_hapi_fhir_5_0_2","resource": {"resourceType": "Communication","id": "20200602_hapi_fhir_5_0_2","meta": {"versionId": "1","tag": [ {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Release"} ]},"language": "en","text": {"status": "generated","div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>A second point release of the HAPI FHIR 5.0 (Labrador) release cycle has been pushed to Maven Central.</p>\n<p>This release corrects only two issues:</p>\n<ul>\n<li>\n<p>A snapshot dependency was accidentally left into the POM for HAPI FHIR 5.0.1. This has been corrected.</p>\n</li>\n<li>\n<p>The default setting for the new partitioning feature "Add Partition to Search Indexes" was incorrectly set to enabled (true). It has been set to false, which was the intended default for this setting.</p>\n</li>\n</ul>\n</div>"},"status": "completed","sent": "2020-06-02T08:00:00-04:00","sender": {"reference": "https://smilecdr.com/about_us/#james","display": "James Agnew"},"payload": [ {"contentString": "<p>A second point release of the HAPI FHIR 5.0 (Labrador) release cycle has been pushed to Maven Central.</p>\n<p>This release corrects only two issues:</p>\n<ul>\n<li>\n<p>A snapshot dependency was accidentally left into the POM for HAPI FHIR 5.0.1. This has been corrected.</p>\n</li>\n<li>\n<p>The default setting for the new partitioning feature "Add Partition to Search Indexes" was incorrectly set to enabled (true). It has been set to false, which was the intended default for this setting.</p>\n</li>\n</ul>\n"} ]}}, {"fullUrl": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication/20200513_hapi_fhir_5_0_0","resource": {"resourceType": "Communication","id": "20200513_hapi_fhir_5_0_0","meta": {"versionId": "1","tag": [ {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Release"} ]},"language": "en","text": {"status": "generated","div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>It's time for another release of HAPI FHIR!</p>\n<p>This release brings some good stuff, including:</p>\n<ul>\n<li>\n<p>A new feature called Partitioning has been added to the JPA server. This can be used to implement multitenancy, as well as other partitioned/segregated/sharded use cases.</p>\n</li>\n<li>\n<p>The IValidationSupport interface has been completely redesigned for better flexibility, extensibility and to enable future use cases. Any existing implementations of this interface will need to be adjusted.</p>\n</li>\n<li>\n<p>Many improvements to performance have been implemented</p>\n</li>\n<li>\n<p>FHIR R5 draft definitions have been updated to the latest FHIR 4.2.0 (Preview 2) definitions</p>\n</li>\n<li>\n<p>The Gson JSON parser has been replaced with Jackson for better flexibility and performance</p>\n</li>\n</ul>\n<p>As always, see the <a href=\"https://smilecdr.com/hapi-fhir/docs/introduction/changelog.html\">changelog</a> for a full list of changes.</p>\n<p>Thanks to everyone who contributed to this release!</p>\n</div>"},"status": "completed","sent": "2020-05-13T10:00:00-05:00","sender": {"reference": "https://smilecdr.com/about_us/#james","display": "James Agnew"},"payload": [ {"contentString": "<p>It's time for another release of HAPI FHIR!</p>\n<p>This release brings some good stuff, including:</p>\n<ul>\n<li>\n<p>A new feature called Partitioning has been added to the JPA server. This can be used to implement multitenancy, as well as other partitioned/segregated/sharded use cases.</p>\n</li>\n<li>\n<p>The IValidationSupport interface has been completely redesigned for better flexibility, extensibility and to enable future use cases. Any existing implementations of this interface will need to be adjusted.</p>\n</li>\n<li>\n<p>Many improvements to performance have been implemented</p>\n</li>\n<li>\n<p>FHIR R5 draft definitions have been updated to the latest FHIR 4.2.0 (Preview 2) definitions</p>\n</li>\n<li>\n<p>The Gson JSON parser has been replaced with Jackson for better flexibility and performance</p>\n</li>\n</ul>\n<p>As always, see the <a href=\"https://smilecdr.com/hapi-fhir/docs/introduction/changelog.html\">changelog</a> for a full list of changes.</p>\n<p>Thanks to everyone who contributed to this release!</p>\n"} ]}}, {"fullUrl": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication/20200215_hapi_fhir_4_2_0","resource": {"resourceType": "Communication","id": "20200215_hapi_fhir_4_2_0","meta": {"versionId": "1","tag": [ {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Release"} ]},"language": "en","text": {"status": "generated","div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>It's time for another release of HAPI FHIR!</p>\n<p>This release brings some good stuff, including:</p>\n<ul>\n<li>\n<p>A new database migrator for the JPA server has been introduced, based on FlywayDB.</p>\n</li>\n<li>\n<p>A major performance enhancement has been added to the parser, which decreases the parse time when parsing large Bundle resources by up to 50%.</p>\n</li>\n<li>\n<p>Support for positional (near) search using geo-coordinates and positional distance has been added. This support currently uses a "bounding box" algorithm, and may be further enhanced to use a radius circle in the future.</p>\n</li>\n<li>\n<p>Support for LOINC 2.67 has been added</p>\n</li>\n</ul>\n<p>As always, see the <a href=\"https://smilecdr.com/hapi-fhir/docs/introduction/changelog.html\">changelog</a> for a full list of changes.</p>\n<p>Thanks to everyone who contributed to this release!</p>\n</div>"},"status": "completed","sent": "2020-02-15T10:00:00-05:00","sender": {"reference": "https://smilecdr.com/about_us/#james","display": "James Agnew"},"payload": [ {"contentString": "<p>It's time for another release of HAPI FHIR!</p>\n<p>This release brings some good stuff, including:</p>\n<ul>\n<li>\n<p>A new database migrator for the JPA server has been introduced, based on FlywayDB.</p>\n</li>\n<li>\n<p>A major performance enhancement has been added to the parser, which decreases the parse time when parsing large Bundle resources by up to 50%.</p>\n</li>\n<li>\n<p>Support for positional (near) search using geo-coordinates and positional distance has been added. This support currently uses a "bounding box" algorithm, and may be further enhanced to use a radius circle in the future.</p>\n</li>\n<li>\n<p>Support for LOINC 2.67 has been added</p>\n</li>\n</ul>\n<p>As always, see the <a href=\"https://smilecdr.com/hapi-fhir/docs/introduction/changelog.html\">changelog</a> for a full list of changes.</p>\n<p>Thanks to everyone who contributed to this release!</p>\n"} ]}}, {"fullUrl": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication/20191113_hapi_fhir_4_1_0","resource": {"resourceType": "Communication","id": "20191113_hapi_fhir_4_1_0","meta": {"versionId": "1","tag": [ {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Release"} ]},"language": "en","text": {"status": "generated","div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>It's time for another release of HAPI FHIR!</p>\n<p>This release brings some good stuff, including:</p>\n<ul>\n<li>\n<p>Structures JARs have been updated to incorporate the latest technical corrections. DSTU3 structures are upgraded to FHIR 3.0.2, R4 structures are upgraded to\tFHIR 4.0.1, and R5 draft structures are upgraded to the October 2019 draft revision.</p>\n</li>\n<li>\n<p>ValueSets are now automatically pre-expanded by the JPA server into a dedicated set of database tables. This "precalculated expansion" is used to provide much better performance for validation and expanion operations, and introduced the ability to successfully expand very large ValueSets such as the LOINC implicit (all codes) valueset.</p>\n</li>\n<li>\n<p>Support for the FHIR Bulk Export specification has been added. We are now\tworking on adding support for Bulk Import!</p>\n</li>\n<li>\n<p>First-order support for ElasticSearch as a full-text and terminology service backend implementation. At this time, both raw Lucene and ElasticSearch are supported (this may change in the future but we do not have any current plans to deprecate Lucene).</p>\n</li>\n<li>\n<p>Live Terminology Service operations for terminology file maintenance based on delta files has been added.</p>\n</li>\n<li>\n<p>Binary resources and Media/DocumentReference instances with binary attachments stored in the FHIR repository can now take advantage of externalized binary storage for the binary content when that feature is enabled. This allows much better scalability of repositories containing large amounts of binary content (e.g. document repositories).</p>\n</li>\n</ul>\n<p>As always, see the <a href=\"https://smilecdr.com/hapi-fhir/docs/introduction/changelog.html\">changelog</a> for a full list of changes.</p>\n<p>Thanks to everyone who contributed to this release!</p>\n<p>Also, as a reminder, if you have not already filled out our annual user survey, please take a moment to do so. Access the survey here:\t<a href=\"http://bit.ly/33HO4cs\">http://bit.ly/33HO4cs</a> (note that this URL was originally posted incorrectly. It is now fixed)</p>\n</div>"},"status": "completed","sent": "2019-11-13T10:00:00-05:00","sender": {"reference": "https://smilecdr.com/about_us/#james","display": "James Agnew"},"payload": [ {"contentString": "<p>It's time for another release of HAPI FHIR!</p>\n<p>This release brings some good stuff, including:</p>\n<ul>\n<li>\n<p>Structures JARs have been updated to incorporate the latest technical corrections. DSTU3 structures are upgraded to FHIR 3.0.2, R4 structures are upgraded to\tFHIR 4.0.1, and R5 draft structures are upgraded to the October 2019 draft revision.</p>\n</li>\n<li>\n<p>ValueSets are now automatically pre-expanded by the JPA server into a dedicated set of database tables. This "precalculated expansion" is used to provide much better performance for validation and expanion operations, and introduced the ability to successfully expand very large ValueSets such as the LOINC implicit (all codes) valueset.</p>\n</li>\n<li>\n<p>Support for the FHIR Bulk Export specification has been added. We are now\tworking on adding support for Bulk Import!</p>\n</li>\n<li>\n<p>First-order support for ElasticSearch as a full-text and terminology service backend implementation. At this time, both raw Lucene and ElasticSearch are supported (this may change in the future but we do not have any current plans to deprecate Lucene).</p>\n</li>\n<li>\n<p>Live Terminology Service operations for terminology file maintenance based on delta files has been added.</p>\n</li>\n<li>\n<p>Binary resources and Media/DocumentReference instances with binary attachments stored in the FHIR repository can now take advantage of externalized binary storage for the binary content when that feature is enabled. This allows much better scalability of repositories containing large amounts of binary content (e.g. document repositories).</p>\n</li>\n</ul>\n<p>As always, see the <a href=\"https://smilecdr.com/hapi-fhir/docs/introduction/changelog.html\">changelog</a> for a full list of changes.</p>\n<p>Thanks to everyone who contributed to this release!</p>\n<p>Also, as a reminder, if you have not already filled out our annual user survey, please take a moment to do so. Access the survey here:\t<a href=\"http://bit.ly/33HO4cs\">http://bit.ly/33HO4cs</a> (note that this URL was originally posted incorrectly. It is now fixed)</p>\n"} ]}}, {"fullUrl": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication/20190814_hapi_fhir_4_0_0","resource": {"resourceType": "Communication","id": "20190814_hapi_fhir_4_0_0","meta": {"versionId": "1","tag": [ {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Release"} ]},"language": "en","text": {"status": "generated","div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>The next release of HAPI has now been uploaded to the Maven repos and GitHub's releases section.</p>\n<p>This release features a number of significant performance improvements, and has some notable changes:</p>\n<ul>\n<li>\n<p>A new consent framework called ConsentInterceptor that can be used to apply local consent directives and policies, and potentially filter or mask data has been added.</p>\n</li>\n<li>\n<p>Initial support for draft FHIR R5 resources has been added.</p>\n</li>\n<li>\n<p>Support for GraphQL and the _filter search parameter has been added.</p>\n</li>\n<li>\n<p>The ability to perform cascading deletes has been added.</p>\n</li>\n</ul>\n<p>As always, see the <a href=\"https://smilecdr.com/hapi-fhir/docs/introduction/changelog.html\">changelog</a> for a full list of changes.</p>\n<p>Thanks to everyone who contributed to this release!</p>\n</div>"},"status": "completed","sent": "2019-08-14T10:00:00-05:00","sender": {"reference": "https://smilecdr.com/about_us/#james","display": "James Agnew"},"payload": [ {"contentString": "<p>The next release of HAPI has now been uploaded to the Maven repos and GitHub's releases section.</p>\n<p>This release features a number of significant performance improvements, and has some notable changes:</p>\n<ul>\n<li>\n<p>A new consent framework called ConsentInterceptor that can be used to apply local consent directives and policies, and potentially filter or mask data has been added.</p>\n</li>\n<li>\n<p>Initial support for draft FHIR R5 resources has been added.</p>\n</li>\n<li>\n<p>Support for GraphQL and the _filter search parameter has been added.</p>\n</li>\n<li>\n<p>The ability to perform cascading deletes has been added.</p>\n</li>\n</ul>\n<p>As always, see the <a href=\"https://smilecdr.com/hapi-fhir/docs/introduction/changelog.html\">changelog</a> for a full list of changes.</p>\n<p>Thanks to everyone who contributed to this release!</p>\n"} ]}}, {"fullUrl": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication/20180211_fhir_and_the_hype_cycle","resource": {"resourceType": "Communication","id": "20180211_fhir_and_the_hype_cycle","meta": {"versionId": "1","tag": [ {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Hype Cycle"}, {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "HL7"}, {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "HL7v2"}, {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "FHIR"} ]},"language": "en","text": {"status": "generated","div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>One of the things we often talk about in the FHIR standards development community is where FHIR currently sits on Gartner's <a href=\"https://www.gartner.com/technology/research/methodologies/hype-cycle.jsp\">Hype Cycle</a>. The hype cycle is a coarse measure of the trajectory of new technologies on a journey from being "new and exciting silver bullets" to eventually being "boring useful technologies".</p>\n<p>When you are a proponent of a new technology (as I certainly am with FHIR), probably the most important aspect to remember about the hype cycle is that you really only ever know where you are at any given time long after that time has passed. In other words, it's fun to ask yourself "have we passed the Peak of Inflated Expectations yet?" but you really won't know until much later.</p>\n<p>Speculating is perhaps a fool's errand. I probably shouldn't try but I can't help but wonder if we have passed the peak yet.</p>\n<p>The trajectory of <a href=\"http://hapifhir.io\">HAPI FHIR</a>'s growth is interesting. FHIR has been growing over the last few years by all kinds of metrics. The connectathons keep getting bigger, the number of vendors participating keeps on getting bigger, and <a href=\"https://www.fhirdevdays.com/\">FHIR DevDays</a> keeps on getting bigger.</p>\n<p>If I look at our website in Google Analytics, I am curious about the trajectory.</p>\n<img src=\"20180211_fhir_and_the_hype_cycle/hapi-growth.png\" style=\"width: 100%; height: auto;\"/>\n<p>While HAPI FHIR has seen pretty steady growth over the last few years, that growth has been either tapering or at least very unstable over the last 8 months.</p>\n<p>Certainly I don't think HAPI FHIR has stopped growing. The number of messages on the support forum and the number of people with big production implementations these days certainly doesn't suggest that; however, things have certainly been weird the last 8 months.</p>\n<p>Let's look at interest in FHIR overall. The next thing to look at is the <a href=\"https://trends.google.com/trends/explore?date=2014-02-11%202018-02-11&q=fhir\">FHIR Google Trends</a> graph, which measures the number of people searching for terms on Google (a pretty decent indicator of general interest). The following graph shows the last 4 years for FHIR.</p>\n<img src=\"20180211_fhir_and_the_hype_cycle/fhir-trends.png\" style=\"width: 100%; height: auto;\"/>\n<p>It would seem that FHIR itself saw a crazy explosion of interest back in May, too. That makes sense since FHIR R3 was released right before that peak.</p>\n<p>Let's compare that with the graph for <a href=\"http://ihe.net\">IHE</a>. I don't think anyone would disagree that IHE sits firmly atop the Plateau of Productivity. Most people in the world of health informatics know what can be accomplished with IHE's profiles, and certainly I've worked with many organizations who use them to accomplish good things.</p>\n<p>The <a href=\"https://trends.google.com/trends/explore?date=2014-02-11%202018-02-11&q=fhir,ihe\">FHIR and IHE Graph</a> shows interest in <span style=\"color: #48F; font-weight: bold;\">FHIR in BLUE</span> and <span style=\"color: #F00; font-weight: bold;\">IHE in RED</span>.</p>\n<img src=\"20180211_fhir_and_the_hype_cycle/fhir-ihe-trends.png\" style=\"width: 100%; height: auto;\"/>\n<p>So what can we take from this? I think the right side of the graph is quite interesting. FHIR itself has kind of levelled off recently and has hit similar metrics to those of a very productive organization.</p>\n<p>I probably shouldn't attach too much meaning to these graphs, but I can't help but wonder...</p>\n</div>"},"status": "completed","sent": "2018-02-11T15:06:00Z","sender": {"reference": "https://smilecdr.com/about_us/#james","display": "James Agnew"},"payload": [ {"contentString": "<p>One of the things we often talk about in the FHIR standards development community is where FHIR currently sits on Gartner's <a href=\"https://www.gartner.com/technology/research/methodologies/hype-cycle.jsp\">Hype Cycle</a>. The hype cycle is a coarse measure of the trajectory of new technologies on a journey from being "new and exciting silver bullets" to eventually being "boring useful technologies".</p>\n<p>When you are a proponent of a new technology (as I certainly am with FHIR), probably the most important aspect to remember about the hype cycle is that you really only ever know where you are at any given time long after that time has passed. In other words, it's fun to ask yourself "have we passed the Peak of Inflated Expectations yet?" but you really won't know until much later.</p>\n<p>Speculating is perhaps a fool's errand. I probably shouldn't try but I can't help but wonder if we have passed the peak yet.</p>\n<p>The trajectory of <a href=\"http://hapifhir.io\">HAPI FHIR</a>'s growth is interesting. FHIR has been growing over the last few years by all kinds of metrics. The connectathons keep getting bigger, the number of vendors participating keeps on getting bigger, and <a href=\"https://www.fhirdevdays.com/\">FHIR DevDays</a> keeps on getting bigger.</p>\n<p>If I look at our website in Google Analytics, I am curious about the trajectory.</p>\n<img src=\"20180211_fhir_and_the_hype_cycle/hapi-growth.png\" style=\"width: 100%; height: auto;\"/>\n<p>While HAPI FHIR has seen pretty steady growth over the last few years, that growth has been either tapering or at least very unstable over the last 8 months.</p>\n<p>Certainly I don't think HAPI FHIR has stopped growing. The number of messages on the support forum and the number of people with big production implementations these days certainly doesn't suggest that; however, things have certainly been weird the last 8 months.</p>\n<p>Let's look at interest in FHIR overall. The next thing to look at is the <a href=\"https://trends.google.com/trends/explore?date=2014-02-11%202018-02-11&q=fhir\">FHIR Google Trends</a> graph, which measures the number of people searching for terms on Google (a pretty decent indicator of general interest). The following graph shows the last 4 years for FHIR.</p>\n<img src=\"20180211_fhir_and_the_hype_cycle/fhir-trends.png\" style=\"width: 100%; height: auto;\"/>\n<p>It would seem that FHIR itself saw a crazy explosion of interest back in May, too. That makes sense since FHIR R3 was released right before that peak.</p>\n<p>Let's compare that with the graph for <a href=\"http://ihe.net\">IHE</a>. I don't think anyone would disagree that IHE sits firmly atop the Plateau of Productivity. Most people in the world of health informatics know what can be accomplished with IHE's profiles, and certainly I've worked with many organizations who use them to accomplish good things.</p>\n<p>The <a href=\"https://trends.google.com/trends/explore?date=2014-02-11%202018-02-11&q=fhir,ihe\">FHIR and IHE Graph</a> shows interest in <span style=\"color: #48F; font-weight: bold;\">FHIR in BLUE</span> and <span style=\"color: #F00; font-weight: bold;\">IHE in RED</span>.</p>\n<img src=\"20180211_fhir_and_the_hype_cycle/fhir-ihe-trends.png\" style=\"width: 100%; height: auto;\"/>\n<p>So what can we take from this? I think the right side of the graph is quite interesting. FHIR itself has kind of levelled off recently and has hit similar metrics to those of a very productive organization.</p>\n<p>I probably shouldn't attach too much meaning to these graphs, but I can't help but wonder...</p>\n"} ]}}, {"fullUrl": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication/20170208_custom_search_parameters","resource": {"resourceType": "Communication","id": "20170208_custom_search_parameters","meta": {"versionId": "1","tag": [ {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "SearchParameters"}, {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "HAPI"}, {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Development"}, {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "FHIR"} ]},"language": "en","text": {"status": "generated","div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>HAPI FHIR's <a href=\"https://hapifhir.io/hapi-fhir/docs/server_jpa/introduction.html\" target=\"_blank\">JPA Module</a> lets you quickly set up a FHIR server, complete with a database for whatever purpose you might have.</p>\n<p>One of the most requested features in the last year has been for support of custom search parameters on that server. Out of the box, the JPA server has always supported the default/built-in search parameters that are defined in the FHIR specification.</p>\n<p>This means that if you store a <code>Patient</code> resource in the database, the <code>Patient.gender</code> field will be indexed with a search parameter called <code>gender</code>, the <code>Patient.birthDate</code> field will be indexed with a search parameter called <code>birthdate</code>, etc.</p>\n<p>To see a list of the default search parameters for a given resource, you can see a table near the bottom of any resource definition. For example, <a href=\"http://www.hl7.org/fhir/patient.html#search\" target=\"_blank\">here are the Patient search parameters</a>.</p>\n<h2>The Need for Custom Parameters</h2>\n<p>The built-in parameters are great for lots of situations but if you're building a real application backend then you are probably going to come up with a need that the FHIR specification developers didn't anticipate (or one that doesn't meet FHIR's 80% rule).</p>\n<p>The solution for this is to introduce a custom search parameter. Search parameters are defined using a resource that is – unsurprisingly – called <code>SearchParameter</code>. The idea is that you create one of these SearchParameter resources and give it a <code>code</code> (the name of the URL parameter), a <code>type</code> (the search parameter type), and an <code>expression</code> (the FHIRPath expression which will actually be indexed).</p>\n<h2>Custom Parameters in HAPI FHIR JPA</h2>\n<p>In HAPI FHIR's JPA server, custom search parameters are indexed just like any other search parameter. A new mechanism has been introduced in HAPI FHIR 2.3 (to be released soon) that parses the expression, adds any new or updated search parameters to an internal registry of indexed paths, and marks any existing resources that are potential candidates for this new search parameter as requiring reindexing.</p>\n<p>This means that any newly added search parameters will cover resources added after the search parameter was added, and it will also cover older resources after the server has had a chance to reindex them.</p>\n<p>This also means that you definitely want to make sure you have properly secured the <code>/SearchParameter</code> endpoint since it can potentially cause your server to do a lot of extra work if there are a lot of resources present.</p>\n<h2>Taking it for a Spin!</h2>\n<p>To show how this works, here is an example of a search parameter on an extension. We'll suppose that in our system we've defined an extension for patients' eye colour. Patient resources stored in our database will have the eye colour extension set, and we want to be able to search on this extension, too.</p>\n<p><strong>1. Create the Search Parameter</strong></p>\n<p>First, define a search parameter and upload it to your server. In Java, this looks as follows:</p>\n<pre><code class=\"language-java\">// Create a search parameter definition\nSearchParameter eyeColourSp = new SearchParameter();\neyeColourSp.addBase("Patient");\neyeColourSp.setCode("eyecolour");\neyeColourSp.setType(org.hl7.fhir.dstu3.model.Enumerations.SearchParamType.TOKEN);\neyeColourSp.setTitle("Eye Colour");\neyeColourSp.setExpression("Patient.extension('http://acme.org/eyecolour')");\neyeColourSp.setXpathUsage(org.hl7.fhir.dstu3.model.SearchParameter.XPathUsageType.NORMAL);\neyeColourSp.setStatus(org.hl7.fhir.dstu3.model.Enumerations.PublicationStatus.ACTIVE);\n// Upload it to the server\nclient\n\t.create()\n\t.resource(eyeColourSp)\n\t.execute();</code></pre>\n<p>The resulting SearchParameter resource looks as follows:</p>\n<pre><code class=\"language-json\">{\n\t"resourceType": "SearchParameter",\n\t"title": "Eye Colour",\n\t"base": [ "Patient" ],\n\t"status": "active",\n\t"code": "eyecolour",\n\t"type": "token",\n\t"expression": "Patient.extension('http://acme.org/eyecolour')",\n\t"xpathUsage": "normal"\n}</code></pre>\n<p><strong>2. Upload Some Resources</strong></p>\n<p>Let's upload two Patient resources with different eye colours.</p>\n<pre><code class=\"language-java\">Patient p1 = new Patient();\np1.setActive(true);\np1.addExtension().setUrl("http://acme.org/eyecolour").setValue(new CodeType("blue"));\nclient\n\t.create()\n\t.resource(p1)\n\t.execute();\nPatient p2 = new Patient();\np2.setActive(true);\np2.addExtension().setUrl("http://acme.org/eyecolour").setValue(new CodeType("green"));\nclient\n\t.create()\n\t.resource(p2)\n\t.execute();</code></pre>\n<p>Here's how one of these resources will look when encoded.</p>\n<pre><code class=\"language-json\">{\n "resourceType": "Patient",\n "extension": [\n {\n "url": "http://acme.org/eyecolour",\n "valueCode": "blue"\n }\n ],\n "active": true\n}</code></pre>\n<p><strong>3. Search!</strong></p>\n<p>Finally, let's try searching:</p>\n<pre><code class=\"language-java\">Bundle bundle = ourClient\n\t.search()\n\t.forResource(Patient.class)\n\t.where(new TokenClientParam("eyecolour").exactly().code("blue"))\n\t.returnBundle(Bundle.class)\n\t.execute();\nSystem.out.println(myFhirCtx.newJsonParser().setPrettyPrint(true).encodeResourceToString(bundle));</code></pre>\n<p>This produces a search result that contains only the matching resource:</p>\n<pre><code class=\"language-json\">{\n "resourceType": "Bundle",\n "id": "bc89e883-b9f7-4745-8c2f-24bf9277664d",\n "meta": {\n "lastUpdated": "2017-02-07T20:30:05.445-05:00"\n },\n "type": "searchset",\n "total": 1,\n "link": [\n {\n "relation": "self",\n "url": "http://localhost:45481/fhir/context/Patient?eyecolour=blue"\n }\n ],\n "entry": [\n {\n "fullUrl": "http://localhost:45481/fhir/context/Patient/2",\n "resource": {\n "resourceType": "Patient",\n "id": "2",\n "meta": {\n "versionId": "1",\n "lastUpdated": "2017-02-07T20:30:05.317-05:00"\n },\n "text": {\n "status": "generated",\n "div": "<div xmlns=\\"http://www.w3.org/1999/xhtml\\"><table class=\\"hapiPropertyTable\\"><tbody/></table></div>"\n },\n "extension": [\n {\n "url": "http://acme.org/eyecolour",\n "valueCode": "blue"\n }\n ],\n "active": true\n },\n "search": {\n "mode": "match"\n }\n }\n ]\n}</code></pre>\n<h2>Custom Search Parameters in Smile CDR</h2>\n<p>Naturally, this feature will soon be available in Smile CDR. Previous versions of Smile CDR had a less elegant solution to this problem; however, now that we have a nice elegant approach to custom parameters that is based on FHIR's own way of handling this, Smile CDR users will see the benefits quickly.</p>\n</div>"},"status": "completed","sent": "2017-02-07T20:35:00-05:00","sender": {"reference": "https://smilecdr.com/about_us/#james","display": "James Agnew"},"payload": [ {"contentString": "<p>HAPI FHIR's <a href=\"https://hapifhir.io/hapi-fhir/docs/server_jpa/introduction.html\" target=\"_blank\">JPA Module</a> lets you quickly set up a FHIR server, complete with a database for whatever purpose you might have.</p>\n<p>One of the most requested features in the last year has been for support of custom search parameters on that server. Out of the box, the JPA server has always supported the default/built-in search parameters that are defined in the FHIR specification.</p>\n<p>This means that if you store a <code>Patient</code> resource in the database, the <code>Patient.gender</code> field will be indexed with a search parameter called <code>gender</code>, the <code>Patient.birthDate</code> field will be indexed with a search parameter called <code>birthdate</code>, etc.</p>\n<p>To see a list of the default search parameters for a given resource, you can see a table near the bottom of any resource definition. For example, <a href=\"http://www.hl7.org/fhir/patient.html#search\" target=\"_blank\">here are the Patient search parameters</a>.</p>\n<h2>The Need for Custom Parameters</h2>\n<p>The built-in parameters are great for lots of situations but if you're building a real application backend then you are probably going to come up with a need that the FHIR specification developers didn't anticipate (or one that doesn't meet FHIR's 80% rule).</p>\n<p>The solution for this is to introduce a custom search parameter. Search parameters are defined using a resource that is – unsurprisingly – called <code>SearchParameter</code>. The idea is that you create one of these SearchParameter resources and give it a <code>code</code> (the name of the URL parameter), a <code>type</code> (the search parameter type), and an <code>expression</code> (the FHIRPath expression which will actually be indexed).</p>\n<h2>Custom Parameters in HAPI FHIR JPA</h2>\n<p>In HAPI FHIR's JPA server, custom search parameters are indexed just like any other search parameter. A new mechanism has been introduced in HAPI FHIR 2.3 (to be released soon) that parses the expression, adds any new or updated search parameters to an internal registry of indexed paths, and marks any existing resources that are potential candidates for this new search parameter as requiring reindexing.</p>\n<p>This means that any newly added search parameters will cover resources added after the search parameter was added, and it will also cover older resources after the server has had a chance to reindex them.</p>\n<p>This also means that you definitely want to make sure you have properly secured the <code>/SearchParameter</code> endpoint since it can potentially cause your server to do a lot of extra work if there are a lot of resources present.</p>\n<h2>Taking it for a Spin!</h2>\n<p>To show how this works, here is an example of a search parameter on an extension. We'll suppose that in our system we've defined an extension for patients' eye colour. Patient resources stored in our database will have the eye colour extension set, and we want to be able to search on this extension, too.</p>\n<p><strong>1. Create the Search Parameter</strong></p>\n<p>First, define a search parameter and upload it to your server. In Java, this looks as follows:</p>\n<pre><code class=\"language-java\">// Create a search parameter definition\nSearchParameter eyeColourSp = new SearchParameter();\neyeColourSp.addBase("Patient");\neyeColourSp.setCode("eyecolour");\neyeColourSp.setType(org.hl7.fhir.dstu3.model.Enumerations.SearchParamType.TOKEN);\neyeColourSp.setTitle("Eye Colour");\neyeColourSp.setExpression("Patient.extension('http://acme.org/eyecolour')");\neyeColourSp.setXpathUsage(org.hl7.fhir.dstu3.model.SearchParameter.XPathUsageType.NORMAL);\neyeColourSp.setStatus(org.hl7.fhir.dstu3.model.Enumerations.PublicationStatus.ACTIVE);\n// Upload it to the server\nclient\n\t.create()\n\t.resource(eyeColourSp)\n\t.execute();</code></pre>\n<p>The resulting SearchParameter resource looks as follows:</p>\n<pre><code class=\"language-json\">{\n\t"resourceType": "SearchParameter",\n\t"title": "Eye Colour",\n\t"base": [ "Patient" ],\n\t"status": "active",\n\t"code": "eyecolour",\n\t"type": "token",\n\t"expression": "Patient.extension('http://acme.org/eyecolour')",\n\t"xpathUsage": "normal"\n}</code></pre>\n<p><strong>2. Upload Some Resources</strong></p>\n<p>Let's upload two Patient resources with different eye colours.</p>\n<pre><code class=\"language-java\">Patient p1 = new Patient();\np1.setActive(true);\np1.addExtension().setUrl("http://acme.org/eyecolour").setValue(new CodeType("blue"));\nclient\n\t.create()\n\t.resource(p1)\n\t.execute();\nPatient p2 = new Patient();\np2.setActive(true);\np2.addExtension().setUrl("http://acme.org/eyecolour").setValue(new CodeType("green"));\nclient\n\t.create()\n\t.resource(p2)\n\t.execute();</code></pre>\n<p>Here's how one of these resources will look when encoded.</p>\n<pre><code class=\"language-json\">{\n "resourceType": "Patient",\n "extension": [\n {\n "url": "http://acme.org/eyecolour",\n "valueCode": "blue"\n }\n ],\n "active": true\n}</code></pre>\n<p><strong>3. Search!</strong></p>\n<p>Finally, let's try searching:</p>\n<pre><code class=\"language-java\">Bundle bundle = ourClient\n\t.search()\n\t.forResource(Patient.class)\n\t.where(new TokenClientParam("eyecolour").exactly().code("blue"))\n\t.returnBundle(Bundle.class)\n\t.execute();\nSystem.out.println(myFhirCtx.newJsonParser().setPrettyPrint(true).encodeResourceToString(bundle));</code></pre>\n<p>This produces a search result that contains only the matching resource:</p>\n<pre><code class=\"language-json\">{\n "resourceType": "Bundle",\n "id": "bc89e883-b9f7-4745-8c2f-24bf9277664d",\n "meta": {\n "lastUpdated": "2017-02-07T20:30:05.445-05:00"\n },\n "type": "searchset",\n "total": 1,\n "link": [\n {\n "relation": "self",\n "url": "http://localhost:45481/fhir/context/Patient?eyecolour=blue"\n }\n ],\n "entry": [\n {\n "fullUrl": "http://localhost:45481/fhir/context/Patient/2",\n "resource": {\n "resourceType": "Patient",\n "id": "2",\n "meta": {\n "versionId": "1",\n "lastUpdated": "2017-02-07T20:30:05.317-05:00"\n },\n "text": {\n "status": "generated",\n "div": "<div xmlns=\\"http://www.w3.org/1999/xhtml\\"><table class=\\"hapiPropertyTable\\"><tbody/></table></div>"\n },\n "extension": [\n {\n "url": "http://acme.org/eyecolour",\n "valueCode": "blue"\n }\n ],\n "active": true\n },\n "search": {\n "mode": "match"\n }\n }\n ]\n}</code></pre>\n<h2>Custom Search Parameters in Smile CDR</h2>\n<p>Naturally, this feature will soon be available in Smile CDR. Previous versions of Smile CDR had a less elegant solution to this problem; however, now that we have a nice elegant approach to custom parameters that is based on FHIR's own way of handling this, Smile CDR users will see the benefits quickly.</p>\n"} ]}}, {"fullUrl": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication/20170201_gitlab_and_exactly_how_to_handle_an_outage","resource": {"resourceType": "Communication","id": "20170201_gitlab_and_exactly_how_to_handle_an_outage","meta": {"versionId": "1","tag": [ {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Outages"}, {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "DevOps"}, {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Git"} ]},"language": "en","text": {"status": "generated","div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>I love <a href=\"https://gitlab.com\" target=\"_blank\">GitLab</a>. Let's get that out of the way.</p>\n<p>Back when I first joined the HAPI project, we were using <a href=\"https://en.wikipedia.org/wiki/Concurrent_Versions_System\" target=\"_blank\">CVS</a> for version control, hosted on SourceForge. Sourceforge was at that point a pretty cool system. You got free project hosting for your open source project, a free website, and shell access to a server so you could run scripts, edit your raw website, and whatever else you needed to do. That last part has always amazed me; I've always wondered what lengths SourceForge must have had to go to in order to keep that system from being abused.</p>\n<p>Naturally, we eventually discovered GitHub and happily moved over there – and HAPI FHIR remains a happy resident of GitHub. We're now in the progress of migrating the HAPI Hl7v2.x codebase over to <a href=\"https://github.com/hapifhir/hapi-hl7v2/\" target=\"_blank\">a new home on GitHub</a>, too.</p>\n<h2>Along comes GitLab</h2>\n<p>The Smile CDR team discovered GitLab about a year ago. We quickly fell in love: easy self-hosting, a UI that feels familiar to a GitHub user yet somehow slightly more powerful in each part you touch, and a compelling set of features in the enterprise edition as well once you are ready for them.</p>\n<p>On Tuesday afternoon, <a href=\"https://smilecdr.com/about_us.htmlFHIR_READ_ALL_OF_TYPE#diederik\">Diederik</a> noticed that GitLab was behaving slowly. I was curious about it since GitLab's <a href=\"https://twitter.com/gitlabstatus\" target=\"_blank\">@gitlabstatus</a> Twitter mentioned unknown issues affecting the site. As it turned out, their issues went from bad, to better, and then to much worse. Ultimately, they wound up being unavailable for all of last night and part of this morning.</p>\n<h2>A terrible day for them!</h2>\n<p>GitLab's issues were slightly hilarious but also totally relatable to anyone building and deploying big systems for any length of time. TechCrunch has a nice <a href=\"https://techcrunch.com/2017/02/01/gitlab-suffers-major-backup-failure-after-data-deletion-incident/\" target=\"_blank\">writeup of the incident</a> if you want the gory details. Let's just say they had slowness problems caused by a user abusing the system, and in trying to recover from that a sysadmin accidentally deleted a large amount of production data. Ultimately, he thought he was in a shell on one (bad) node and just removing a useless empty directory but he was actually in a shell on the (good) master node.</p>\n<p>I read a few meltdowns about this on reddit today, calling the sysadmin inexperienced, inept, or worse, but I also saw a few people saying something that resonated with me much more: if you've never made a mistake on a big complicated production system, you've probably never worked on a big complicated production system.</p>\n<p>These things happen. The trick is being able to recover from whatever has gone wrong, no matter how bad things have gotten.</p>\n<h2>An exercise in good incident management</h2>\n<img src=\"20170201_gitlab_and_exactly_how_to_handle_an_outage/gitlabfail02.gif\" style=\"max-width: 500px;\" class=\"PostCaptionTopRight\"/>\n<p>This is where GitLab really won me over. Check their <a href=\"https://twitter.com/gitlabstatus\" target=\"_blank\">Twitter</a> for yourself. There was no attempt to mince words. GitLab engineers were candid about what had happened from the second things went south.</p>\n<p>GitLab opened a publicly readable Google Doc where all of the notes of their investigation could be read by anyone wanting to follow along. When it became clear that the recovery effort was going to be long and complicated, they opened a YouTube live stream of a conference bridge with their engineers chipping away at the recovery.</p>\n<p>They even opened a live chat with the stream so you could comment on their efforts. Watching it was great. I've been in their position many times in my life: tired from being up all night trying to fix something, and sitting on an endless bridge where I'm fixing one piece, waiting for others to fix theirs, and trying to keep morale up as best I can. GitLab's engineers did this, and they did it with cameras running.</p>\n<p>So this is the thing: I bet GitLab will be doing a lot of soul-searching in the next few days, and hopefully their tired engineers will get some rest soon. In the end, the inconvenience of this outage will be forgotten but I'm sure this won't be the last time I'll point to the way they handled a critical incident with complete transparency, and set my mind at ease that things were under control.</p>\n</div>"},"status": "completed","sent": "2017-02-01T20:37:00-05:00","sender": {"reference": "https://smilecdr.com/about_us/#james","display": "James Agnew"},"payload": [ {"contentString": "<p>I love <a href=\"https://gitlab.com\" target=\"_blank\">GitLab</a>. Let's get that out of the way.</p>\n<p>Back when I first joined the HAPI project, we were using <a href=\"https://en.wikipedia.org/wiki/Concurrent_Versions_System\" target=\"_blank\">CVS</a> for version control, hosted on SourceForge. Sourceforge was at that point a pretty cool system. You got free project hosting for your open source project, a free website, and shell access to a server so you could run scripts, edit your raw website, and whatever else you needed to do. That last part has always amazed me; I've always wondered what lengths SourceForge must have had to go to in order to keep that system from being abused.</p>\n<p>Naturally, we eventually discovered GitHub and happily moved over there – and HAPI FHIR remains a happy resident of GitHub. We're now in the progress of migrating the HAPI Hl7v2.x codebase over to <a href=\"https://github.com/hapifhir/hapi-hl7v2/\" target=\"_blank\">a new home on GitHub</a>, too.</p>\n<h2>Along comes GitLab</h2>\n<p>The Smile CDR team discovered GitLab about a year ago. We quickly fell in love: easy self-hosting, a UI that feels familiar to a GitHub user yet somehow slightly more powerful in each part you touch, and a compelling set of features in the enterprise edition as well once you are ready for them.</p>\n<p>On Tuesday afternoon, <a href=\"https://smilecdr.com/about_us.htmlFHIR_READ_ALL_OF_TYPE#diederik\">Diederik</a> noticed that GitLab was behaving slowly. I was curious about it since GitLab's <a href=\"https://twitter.com/gitlabstatus\" target=\"_blank\">@gitlabstatus</a> Twitter mentioned unknown issues affecting the site. As it turned out, their issues went from bad, to better, and then to much worse. Ultimately, they wound up being unavailable for all of last night and part of this morning.</p>\n<h2>A terrible day for them!</h2>\n<p>GitLab's issues were slightly hilarious but also totally relatable to anyone building and deploying big systems for any length of time. TechCrunch has a nice <a href=\"https://techcrunch.com/2017/02/01/gitlab-suffers-major-backup-failure-after-data-deletion-incident/\" target=\"_blank\">writeup of the incident</a> if you want the gory details. Let's just say they had slowness problems caused by a user abusing the system, and in trying to recover from that a sysadmin accidentally deleted a large amount of production data. Ultimately, he thought he was in a shell on one (bad) node and just removing a useless empty directory but he was actually in a shell on the (good) master node.</p>\n<p>I read a few meltdowns about this on reddit today, calling the sysadmin inexperienced, inept, or worse, but I also saw a few people saying something that resonated with me much more: if you've never made a mistake on a big complicated production system, you've probably never worked on a big complicated production system.</p>\n<p>These things happen. The trick is being able to recover from whatever has gone wrong, no matter how bad things have gotten.</p>\n<h2>An exercise in good incident management</h2>\n<img src=\"20170201_gitlab_and_exactly_how_to_handle_an_outage/gitlabfail02.gif\" class=\"PostCaptionTopRight\" style=\"max-width: 500px;\"/>\n<p>This is where GitLab really won me over. Check their <a href=\"https://twitter.com/gitlabstatus\" target=\"_blank\">Twitter</a> for yourself. There was no attempt to mince words. GitLab engineers were candid about what had happened from the second things went south.</p>\n<p>GitLab opened a publicly readable Google Doc where all of the notes of their investigation could be read by anyone wanting to follow along. When it became clear that the recovery effort was going to be long and complicated, they opened a YouTube live stream of a conference bridge with their engineers chipping away at the recovery.</p>\n<p>They even opened a live chat with the stream so you could comment on their efforts. Watching it was great. I've been in their position many times in my life: tired from being up all night trying to fix something, and sitting on an endless bridge where I'm fixing one piece, waiting for others to fix theirs, and trying to keep morale up as best I can. GitLab's engineers did this, and they did it with cameras running.</p>\n<p>So this is the thing: I bet GitLab will be doing a lot of soul-searching in the next few days, and hopefully their tired engineers will get some rest soon. In the end, the inconvenience of this outage will be forgotten but I'm sure this won't be the last time I'll point to the way they handled a critical incident with complete transparency, and set my mind at ease that things were under control.</p>\n"} ]}}, {"fullUrl": "https://smilecdr.com/hapi-fhir/blog/fhir/baseR4/Communication/20170117_hl7_wgm_san_antonio","resource": {"resourceType": "Communication","id": "20170117_hl7_wgm_san_antonio","meta": {"versionId": "1","tag": [ {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "HL7"}, {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Meetings"}, {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "Connectathon"}, {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "FHIR"}, {"system": "https://smilecdr.com/hapi-fhir/blog/tag","code": "WGM"} ]},"language": "en","text": {"status": "generated","div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><img src=\"20170117_hl7_wgm_san_antonio/IMG_20170116_214308.jpg\" class=\"blog-post-image-fullwidth\"/>\n<p>It's January again, which of course means it's time for the January HL7 Working Group Meeting. As always, the first two days of the HL7 meeting brings FHIR Connectathon, and this was Connectathon 14.</p>\n<p>I feel like every time I visit one of these meetings, the scale of the meeting astounds me and I can't imagine it being any bigger... and then that happens again the next time. The final tally at the September 2016 (Baltimore) Connectathon was 170 people. The final tally here in San Antonio was 209 so we continue to beat expectations.</p>\n<p>I think we are finally passing a point where it's feasible to fit everyone in a half-size hotel ballroom. We may well have some hard decisions about whether the format still works or whether we need to turn people away in September.</p>\n<p>Also amazing to me was the number of new faces. On the first day, <a href=\"https://github.com/ewoutkramer\" target=\"_blank\">Ewout Kramer</a> asked the room for anyone who was a first-time attendee to a FHIR Connectathon to raise their hand. It looked like about half the room raised their hand so we're really expanding the pool of interested people right now. Exciting days for FHIR!</p>\n<p>Monday night brought our usual HAPI & .NET Users Group. We discussed a proposal we're working on for a template-based approach to automatic resource narrative generation. There will be more on that in a future post.</p>\n</div>"},"status": "completed","sent": "2017-01-17T18:00:00-05:00","sender": {"reference": "https://smilecdr.com/about_us/#james","display": "James Agnew"},"payload": [ {"contentString": "<img src=\"20170117_hl7_wgm_san_antonio/IMG_20170116_214308.jpg\" class=\"blog-post-image-fullwidth\"/>\n<p>It's January again, which of course means it's time for the January HL7 Working Group Meeting. As always, the first two days of the HL7 meeting brings FHIR Connectathon, and this was Connectathon 14.</p>\n<p>I feel like every time I visit one of these meetings, the scale of the meeting astounds me and I can't imagine it being any bigger... and then that happens again the next time. The final tally at the September 2016 (Baltimore) Connectathon was 170 people. The final tally here in San Antonio was 209 so we continue to beat expectations.</p>\n<p>I think we are finally passing a point where it's feasible to fit everyone in a half-size hotel ballroom. We may well have some hard decisions about whether the format still works or whether we need to turn people away in September.</p>\n<p>Also amazing to me was the number of new faces. On the first day, <a href=\"https://github.com/ewoutkramer\" target=\"_blank\">Ewout Kramer</a> asked the room for anyone who was a first-time attendee to a FHIR Connectathon to raise their hand. It looked like about half the room raised their hand so we're really expanding the pool of interested people right now. Exciting days for FHIR!</p>\n<p>Monday night brought our usual HAPI & .NET Users Group. We discussed a proposal we're working on for a template-based approach to automatic resource narrative generation. There will be more on that in a future post.</p>\n"} ]}} ]}