You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to use this library and are having trouble parsing Epic's conformance statement.
deftest_use_smart_fhirclient() ->None:
"""We would like to replace our working FHIR auth code with `smart-on-fhir`'s `fhirclient` package. Unfortunately, [Epic's Conformance][1] elements of type [group export][2] are not recognized by this library. These can be hacked around by editing the library to set `strict=False` for the constructors of `CapabilityStatement` and `CapabilityStatementRestResource`. Even after setting those we are getting getting a 401, so perhaps our code is simply off. [1]: https://apporchard.epic.com/interconnect-aocurprd-oauth/api/FHIR/R4/metadata [2]: http://hl7.org/fhir/uv/bulkdata/OperationDefinition/group-export """fromfhirclient.clientimportFHIRClientfromfhirclient.models.encounterimportEncountersettings= {
"app_id": get_client_id(), # a UUID provided by Epic AppOrchard"app_secret": get_private_key(), # an RSA private key"api_base": "https://apporchard.epic.com/interconnect-aocurprd-oauth/api/FHIR/R4"
}
client=FHIRClient(settings=settings)
client.prepare()
encounter_id="encounter1"# our code uses an actual valid encounter idEncounter.read(encounter_id, client.server)
Running this gives following error during prepare:
Non-optional property "interaction" on <models.capabilitystatement.CapabilityStatementRestResource object at 0x10a9d14c0> is missing'
Superfluous entry "operation" in data for <models.capabilitystatement.CapabilityStatementRestResource object at 0x10a9d14c0>
Non-optional property "acceptUnknown" on <models.capabilitystatement.CapabilityStatement object at 0x10a862970> is missing'
The text was updated successfully, but these errors were encountered:
We are trying to use this library and are having trouble parsing Epic's conformance statement.
Running this gives following error during
prepare
:The text was updated successfully, but these errors were encountered: