FHIRPath Specification
2.1.0 - draft International flag

FHIRPath Specification, published by Implementable Technology Specifications WG. This guide is not an authorized publication; it is the continuous build for version 2.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/FHIRPath/ and changes regularly. See the Directory of published versions

: Grammar - JSON Representation

Raw json | Download


{
  "resourceType" : "Binary",
  "id" : "binary-grammar",
  "contentType" : "text/plain",
  "data" : "Z3JhbW1hciBmaGlycGF0aDsKCi8vIEdyYW1tYXIgcnVsZXMKLy8gW0ZISVJQYXRoXShodHRwOi8vaGw3Lm9yZy9maGlycGF0aC9OMSkgTm9ybWF0aXZlIFJlbGVhc2UKCi8vcHJvZzogbGluZSAobGluZSkqOwovL2xpbmU6IElEICggJygnIGV4cHIgJyknKSAnOicgZXhwciAnXHInPyAnXG4nOwoKZXhwcmVzc2lvbgogICAgICAgIDogdGVybSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICN0ZXJtRXhwcmVzc2lvbgogICAgICAgIHwgZXhwcmVzc2lvbiAnLicgaW52b2NhdGlvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICNpbnZvY2F0aW9uRXhwcmVzc2lvbgogICAgICAgIHwgZXhwcmVzc2lvbiAnWycgZXhwcmVzc2lvbiAnXScgICAgICAgICAgICAgICAgICAgICAgICAgICAgICNpbmRleGVyRXhwcmVzc2lvbgogICAgICAgIHwgKCcrJyB8ICctJykgZXhwcmVzc2lvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICNwb2xhcml0eUV4cHJlc3Npb24KICAgICAgICB8IGV4cHJlc3Npb24gKCcqJyB8ICcvJyB8ICdkaXYnIHwgJ21vZCcpIGV4cHJlc3Npb24gICAgICAgICAjbXVsdGlwbGljYXRpdmVFeHByZXNzaW9uCiAgICAgICAgfCBleHByZXNzaW9uICgnKycgfCAnLScgfCAnJicpIGV4cHJlc3Npb24gICAgICAgICAgICAgICAgICAgI2FkZGl0aXZlRXhwcmVzc2lvbgogICAgICAgIHwgZXhwcmVzc2lvbiAoJ2lzJyB8ICdhcycpIHR5cGVTcGVjaWZpZXIgICAgICAgICAgICAgICAgICAgICN0eXBlRXhwcmVzc2lvbgogICAgICAgIHwgZXhwcmVzc2lvbiAnfCcgZXhwcmVzc2lvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICN1bmlvbkV4cHJlc3Npb24KICAgICAgICB8IGV4cHJlc3Npb24gKCc8PScgfCAnPCcgfCAnPicgfCAnPj0nKSBleHByZXNzaW9uICAgICAgICAgICAjaW5lcXVhbGl0eUV4cHJlc3Npb24KICAgICAgICB8IGV4cHJlc3Npb24gKCc9JyB8ICd+JyB8ICchPScgfCAnIX4nKSBleHByZXNzaW9uICAgICAgICAgICAjZXF1YWxpdHlFeHByZXNzaW9uCiAgICAgICAgfCBleHByZXNzaW9uICgnaW4nIHwgJ2NvbnRhaW5zJykgZXhwcmVzc2lvbiAgICAgICAgICAgICAgICAgI21lbWJlcnNoaXBFeHByZXNzaW9uCiAgICAgICAgfCBleHByZXNzaW9uICdhbmQnIGV4cHJlc3Npb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI2FuZEV4cHJlc3Npb24KICAgICAgICB8IGV4cHJlc3Npb24gKCdvcicgfCAneG9yJykgZXhwcmVzc2lvbiAgICAgICAgICAgICAgICAgICAgICAjb3JFeHByZXNzaW9uCiAgICAgICAgfCBleHByZXNzaW9uICdpbXBsaWVzJyBleHByZXNzaW9uICAgICAgICAgICAgICAgICAgICAgICAgICAgI2ltcGxpZXNFeHByZXNzaW9uCiAgICAgICAgLy98IChJREVOVElGSUVSKT8gJz0+JyBleHByZXNzaW9uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjbGFtYmRhRXhwcmVzc2lvbgogICAgICAgIDsKCnRlcm0KICAgICAgICA6IGludm9jYXRpb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICNpbnZvY2F0aW9uVGVybQogICAgICAgIHwgbGl0ZXJhbCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI2xpdGVyYWxUZXJtCiAgICAgICAgfCBleHRlcm5hbENvbnN0YW50ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjZXh0ZXJuYWxDb25zdGFudFRlcm0KICAgICAgICB8ICcoJyBleHByZXNzaW9uICcpJyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICNwYXJlbnRoZXNpemVkVGVybQogICAgICAgIDsKCmxpdGVyYWwKICAgICAgICA6ICd7JyAnfScgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICNudWxsTGl0ZXJhbAogICAgICAgIHwgKCd0cnVlJyB8ICdmYWxzZScpICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI2Jvb2xlYW5MaXRlcmFsCiAgICAgICAgfCBTVFJJTkcgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjc3RyaW5nTGl0ZXJhbAogICAgICAgIHwgTlVNQkVSICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI251bWJlckxpdGVyYWwKICAgICAgICB8IERBVEVUSU1FICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICNkYXRlVGltZUxpdGVyYWwKICAgICAgICB8IFRJTUUgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICN0aW1lTGl0ZXJhbAogICAgICAgIHwgcXVhbnRpdHkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI3F1YW50aXR5TGl0ZXJhbAogICAgICAgIDsKCmV4dGVybmFsQ29uc3RhbnQKICAgICAgICA6ICclJyAoIGlkZW50aWZpZXIgfCBTVFJJTkcgKQogICAgICAgIDsKCmludm9jYXRpb24gICAgICAgICAgICAgICAgICAgICAgICAgIC8vIFRlcm1zIHRoYXQgY2FuIGJlIHVzZWQgYWZ0ZXIgdGhlIGZ1bmN0aW9uL21lbWJlciBpbnZvY2F0aW9uICcuJwogICAgICAgIDogaWRlbnRpZmllciAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI21lbWJlckludm9jYXRpb24KICAgICAgICB8IGZ1bmN0aW9uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICNmdW5jdGlvbkludm9jYXRpb24KICAgICAgICB8ICckdGhpcycgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICN0aGlzSW52b2NhdGlvbgogICAgICAgIHwgJyRpbmRleCcgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI2luZGV4SW52b2NhdGlvbgogICAgICAgIHwgJyR0b3RhbCcgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI3RvdGFsSW52b2NhdGlvbgogICAgICAgIDsKCmZ1bmN0aW9uCiAgICAgICAgOiBpZGVudGlmaWVyICcoJyBwYXJhbUxpc3Q/ICcpJwogICAgICAgIDsKCnBhcmFtTGlzdAogICAgICAgIDogZXhwcmVzc2lvbiAoJywnIGV4cHJlc3Npb24pKgogICAgICAgIDsKCnF1YW50aXR5CiAgICAgICAgOiBOVU1CRVIgdW5pdD8KICAgICAgICA7Cgp1bml0CiAgICAgICAgOiBkYXRlVGltZVByZWNpc2lvbgogICAgICAgIHwgcGx1cmFsRGF0ZVRpbWVQcmVjaXNpb24KICAgICAgICB8IFNUUklORyAvLyBVQ1VNIHN5bnRheCBmb3IgdW5pdHMgb2YgbWVhc3VyZQogICAgICAgIDsKCmRhdGVUaW1lUHJlY2lzaW9uCiAgICAgICAgOiAneWVhcicgfCAnbW9udGgnIHwgJ3dlZWsnIHwgJ2RheScgfCAnaG91cicgfCAnbWludXRlJyB8ICdzZWNvbmQnIHwgJ21pbGxpc2Vjb25kJwogICAgICAgIDsKCnBsdXJhbERhdGVUaW1lUHJlY2lzaW9uCiAgICAgICAgOiAneWVhcnMnIHwgJ21vbnRocycgfCAnd2Vla3MnIHwgJ2RheXMnIHwgJ2hvdXJzJyB8ICdtaW51dGVzJyB8ICdzZWNvbmRzJyB8ICdtaWxsaXNlY29uZHMnCiAgICAgICAgOwoKdHlwZVNwZWNpZmllcgogICAgICAgIDogcXVhbGlmaWVkSWRlbnRpZmllcgogICAgICAgIDsKCnF1YWxpZmllZElkZW50aWZpZXIKICAgICAgICA6IGlkZW50aWZpZXIgKCcuJyBpZGVudGlmaWVyKSoKICAgICAgICA7CgppZGVudGlmaWVyCiAgICAgICAgOiBJREVOVElGSUVSCiAgICAgICAgfCBERUxJTUlURURJREVOVElGSUVSCiAgICAgICAgfCAnYXMnCiAgICAgICAgfCAnY29udGFpbnMnCiAgICAgICAgfCAnaW4nCiAgICAgICAgfCAnaXMnCiAgICAgICAgOwoKCi8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiAgICBMZXhpY2FsIHJ1bGVzCioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLwoKLyoKTk9URTogVGhlIGdvYWwgb2YgdGhlc2UgcnVsZXMgaW4gdGhlIGdyYW1tYXIgaXMgdG8gcHJvdmlkZSBhIGRhdGUKdG9rZW4gdG8gdGhlIHBhcnNlci4gQXMgc3VjaCBpdCBpcyBub3QgYXR0ZW1wdGluZyB0byB2YWxpZGF0ZSB0aGF0CnRoZSBkYXRlIGlzIGEgY29ycmVjdCBkYXRlLCB0aGF0IHRhc2sgaXMgZm9yIHRoZSBwYXJzZXIgb3IgaW50ZXJwcmV0ZXIuCiovCgpEQVRFCiAgICAgICAgOiAnQCcgREFURUZPUk1BVAogICAgICAgIDsKCkRBVEVUSU1FCiAgICAgICAgOiAnQCcgREFURUZPUk1BVCAnVCcgKFRJTUVGT1JNQVQgVElNRVpPTkVPRkZTRVRGT1JNQVQ/KT8KICAgICAgICA7CgpUSU1FCiAgICAgICAgOiAnQCcgJ1QnIFRJTUVGT1JNQVQKICAgICAgICA7CgpmcmFnbWVudCBEQVRFRk9STUFUCiAgICAgICAgOiBbMC05XVswLTldWzAtOV1bMC05XSAoJy0nWzAtOV1bMC05XSAoJy0nWzAtOV1bMC05XSk/KT8KICAgICAgICA7CgpmcmFnbWVudCBUSU1FRk9STUFUCiAgICAgICAgOiBbMC05XVswLTldICgnOidbMC05XVswLTldICgnOidbMC05XVswLTldICgnLidbMC05XSspPyk/KT8KICAgICAgICA7CgpmcmFnbWVudCBUSU1FWk9ORU9GRlNFVEZPUk1BVAogICAgICAgIDogKCdaJyB8ICgnKycgfCAnLScpIFswLTldWzAtOV0nOidbMC05XVswLTldKQogICAgICAgIDsKCklERU5USUZJRVIKICAgICAgICA6IChbQS1aYS16XSB8ICdfJykoW0EtWmEtejAtOV0gfCAnXycpKiAgICAgICAgICAgIC8vIEFkZGVkIF8gdG8gc3VwcG9ydCBDUUwgKEZISVIgY291bGQgY29uc3RyYWluIGl0IG91dCkKICAgICAgICA7CgpERUxJTUlURURJREVOVElGSUVSCiAgICAgICAgOiAnYCcgKEVTQyB8IC4pKj8gJ2AnCiAgICAgICAgOwoKU1RSSU5HCiAgICAgICAgOiAnXCcnIChFU0MgfCAuKSo/ICdcJycKICAgICAgICA7CgovLyBBbHNvIGFsbG93cyBsZWFkaW5nIHplcm9lcyBub3cgKGp1c3QgbGlrZSBDUUwgYW5kIFhTRCkKTlVNQkVSCiAgICAgICAgOiBbMC05XSsoJy4nIFswLTldKyk/CiAgICAgICAgOwoKLy8gUGlwZSB3aGl0ZXNwYWNlIHRvIHRoZSBISURERU4gY2hhbm5lbCB0byBzdXBwb3J0IHJldHJpZXZpbmcgc291cmNlIHRleHQgdGhyb3VnaCB0aGUgcGFyc2VyLgpXUwogICAgICAgIDogWyBcclxuXHRdKyAtPiBjaGFubmVsKEhJRERFTikKICAgICAgICA7CgpDT01NRU5UCiAgICAgICAgOiAnLyonIC4qPyAnKi8nIC0+IGNoYW5uZWwoSElEREVOKQogICAgICAgIDsKCkxJTkVfQ09NTUVOVAogICAgICAgIDogJy8vJyB+W1xyXG5dKiAtPiBjaGFubmVsKEhJRERFTikKICAgICAgICA7CgpmcmFnbWVudCBFU0MKICAgICAgICA6ICdcXCcgKFtgJ1xcL2ZucnRdIHwgVU5JQ09ERSkgICAgLy8gYWxsb3cgXGAsIFwnLCBcXCwgXC8sIFxmLCBldGMuIGFuZCBcdVhYWAogICAgICAgIDsKCmZyYWdtZW50IFVOSUNPREUKICAgICAgICA6ICd1JyBIRVggSEVYIEhFWCBIRVgKICAgICAgICA7CgpmcmFnbWVudCBIRVgKICAgICAgICA6IFswLTlhLWZBLUZdCiAgICAgICAgOwo="
}