FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureDefinition/ExampleMap

Packagehl7.fhir.us.registry-protocols
Resource TypeStructureDefinition
IdExampleMap
FHIR VersionR4
Sourcehttp://hl7.org/fhir/us/registry-protocols/https://build.fhir.org/ig/HL7/fhir-registry-protocols-ig/StructureDefinition-ExampleMap.html
URLhttp://hl7.org/fhir/us/registry-protocols/StructureDefinition/ExampleMap
Version1.0.0
Statusactive
Date2021-11-01
NameExample_Submission_map
TitleExample Submission Map
Realmus
Authorityhl7
DescriptionThis is an example of the data that would be used for a Resgistry Submission. The full map is a logical model as that allows conformance to the FHIR Standard the way a custom Resource would not. Each element has the short name of the data, a full description and the paths to fetch and place the information, by data standard type, for each. A section (such as Demographics) is a BackboneElement (holds no values). All subordinate elements are strings. Each mapping includes the following: * identity = standard used for the mapping (e.g., FHIR) * language = mime type that matches identity * map = FHIRPath expression of the path to the data * comment = *Output mapping only* Resource/Profile for inclusion in the Submission Bundle
Typehttp://hl7.org/fhir/us/registry-protocols/StructureDefinition/ExampleMap
Kindlogical

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

NameFlagsCard.TypeDescription & Constraintsdoco
.. ExampleMap 0..*BaseExample Submission Map
Instances of this logical model are not marked to be the target of a Reference
... demographics 1..1BackboneElementPatient Demographics
.... lastName 1..1stringLast Name
.... firstName 1..1stringFirst Name
.... middleName 0..*stringMiddle Name
... episodeInformation 1..1BackboneElementCathPCI Episode Information
.... episodeUniqueKey 1..1stringEpisode Unique Key
.... admissionDateAndTime 1..1stringAdmission Date and Time
.... healthInsurance 1..1stringHealth Insurance
.... healthInsuranceClaimNumber 1..1stringHealth Insurance Claim Number (HIC)
.... healthInsurancePaymentSource 1..*stringHealth Insurance Payment Source
.... medicareBeneficiaryIdentifier 1..1stringMedicare Beneficiary Identifier
.... patientEnrolledInResearchStudy 1..1stringPatient Enrolled in Research Study
.... patientRestriction 1..1stringPatient Restriction
... arrivalInformation 1..1BackboneElementPatient Arrival Information
.... numberOfTransferringFacilityUnavailable 1..1stringNumber of Transferring Facility Unavailable
.... transferringFacilityAmericanHospitalAssociationName 1..1stringTransferring Facility American Hospital Association Name
.... transferringFacilityAmericanHospitalAssociationNumber 1..1stringTransferring Facility American Hospital Association Number
... cardiacStatus 1..1BackboneElementPatient Cardiac Status
.... bystanderCardiopulmonaryResuscitation 1..1stringBystander Cardiopulmonary Resuscitation
.... cardiacArrestAfterArrivalOfEmergencyMedicalServices 1..1stringCardiac Arrest After Arrival of Emergency Medical Services
.... cardiacArrestAtTransferringHealthcareFacility 1..1stringCardiac Arrest at Transferring Healthcare Facility
.... cardiacArrestOutOfHealthcareFacility 1..1stringCardiac Arrest Out of Healthcare Facility
.... cardiacArrestWitnessed 1..1stringCardiac Arrest Witnessed
.... firstCardiacArrestRhythm 1..1stringFirst Cardiac Arrest Rhythm
.... firstCardiacArrestRhythmUnknown 1..1stringFirst Cardiac Arrest Rhythm Unknown
... historyAndRiskFactors 1..1BackboneElementPatient History and Risk Factors
.... basicActivitiesOfDailyLiving 1..1stringBasic Activities of Daily Living
.... basicActivitiesOfDailyLivingUnknown 1..1stringBasic Activities of Daily Living Unknown
.... cognition 1..1stringCognition
.... cognitionUnknown 1..1stringCognition Unknown
.... smokingAmount 1..1stringSmoking Amount
.... tobaccoType 1..1stringTobacco Type
.... tobaccoUse 1..1stringTobacco Use
.... walking 1..1stringWalking
.... walkingUnknown 1..1stringWalking Unknown
... researchStudy 0..1BackboneElementResearch Study Information
.... researchStudyName 1..1stringResearch Study Name
.... researchStudyPatientId 1..1stringResearch Study Patient ID

doco Documentation for this format

Source

{
  "resourceType": "StructureDefinition",
  "id": "ExampleMap",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "cic"
    }
  ],
  "url": "http://hl7.org/fhir/us/registry-protocols/StructureDefinition/ExampleMap",
  "identifier": [
    {
      "use": "official"
    }
  ],
  "version": "1.0.0",
  "name": "Example_Submission_map",
  "title": "Example Submission Map",
  "status": "active",
  "date": "2021-11-01",
  "publisher": "HL7 International / Clinical Interoperability Council",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/cic"
        }
      ]
    },
    {
      "telecom": [
        {
          "system": "email",
          "value": "cic@lists.hl7.org"
        }
      ]
    },
    {
      "name": "Clinical Interoperability Council",
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/cic"
        }
      ]
    },
    {
      "name": "David Pyke",
      "telecom": [
        {
          "system": "email",
          "value": "mailto:David.Pyke@pointclickcare.com"
        }
      ]
    }
  ],
  "description": "This is an example of the data that would be used for a Resgistry Submission.\nThe full map is a logical model as that allows conformance to the FHIR Standard the way a custom Resource would not.\nEach element has the short name of the data, a full description and the paths to fetch and place the information, by data standard type, for each.\nA section (such as Demographics) is a BackboneElement (holds no values).  All subordinate elements are strings.\nEach mapping includes the following:\n* identity = standard used for the mapping (e.g., FHIR)\n* language = mime type that matches identity\n* map = FHIRPath expression of the path to the data\n* comment = *Output mapping only* Resource/Profile for inclusion in the Submission Bundle",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "US",
          "display": "United States of America"
        }
      ]
    }
  ],
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "FHIR",
      "uri": "http://fhir.hl7.org",
      "name": "Fast Health Interoperability Resources",
      "comment": "Path to where in a FHIR Resource the data element is found"
    },
    {
      "identity": "CDA",
      "uri": "http://build.fhir.org/ig/HL7/cda-core-2.0/",
      "name": "Clinical Document Architecture",
      "comment": "Path to where in a CDA 2.0/CCDA 2.1 Document the data element is found"
    },
    {
      "identity": "HL7V2",
      "uri": "http://www.hl7.eu/refactored/index.html",
      "name": "HL7 V2 Messages",
      "comment": "Path to where in a HL7 V2 Message the data element is found"
    },
    {
      "identity": "Output",
      "uri": "http://hl7.org/fhir/us/core",
      "name": "Submission Data Output location",
      "comment": "Location within the requirements profile to place the data for submission in US Core or FHIR Core Resources"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "http://hl7.org/fhir/us/registry-protocols/StructureDefinition/ExampleMap",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "snapshot": {
    "element": [
      {
        "id": "ExampleMap",
        "path": "ExampleMap",
        "short": "Example Submission Map",
        "definition": "This is an example of the data that would be used for a Resgistry Submission.\nThe full map is a logical model as that allows conformance to the FHIR Standard the way a custom Resource would not.\nEach element has the short name of the data, a full description and the paths to fetch and place the information, by data standard type, for each.\nA section (such as Demographics) is a BackboneElement (holds no values).  All subordinate elements are strings.\nEach mapping includes the following:\n* identity = standard used for the mapping (e.g., FHIR)\n* language = mime type that matches identity\n* map = FHIRPath expression of the path to the data\n* comment = *Output mapping only* Resource/Profile for inclusion in the Submission Bundle",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "isModifier": false
      },
      {
        "id": "ExampleMap.demographics",
        "path": "ExampleMap.demographics",
        "short": "Patient Demographics",
        "definition": "Patient Demographics",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.demographics",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "ExampleMap.demographics.id",
        "path": "ExampleMap.demographics.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ExampleMap.demographics.extension",
        "path": "ExampleMap.demographics.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ExampleMap.demographics.modifierExtension",
        "path": "ExampleMap.demographics.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ExampleMap.demographics.lastName",
        "path": "ExampleMap.demographics.lastName",
        "short": "Last Name",
        "definition": "Indicate the patient's last name. Hyphenated names should be recorded with a hyphen.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.demographics.lastName",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Patient.name.family"
          },
          {
            "identity": "CDA",
            "language": "application/hl7-sda+xml",
            "map": "ClinicalDocument.recordTarget.patient.name.family"
          },
          {
            "identity": "HL7V2",
            "language": "application/edi-hl7v2",
            "map": "ADT_A01.PID.5.1"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Patient.name.family",
            "comment": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient.name.family"
          }
        ]
      },
      {
        "id": "ExampleMap.demographics.firstName",
        "path": "ExampleMap.demographics.firstName",
        "short": "First Name",
        "definition": "Indicate the patient's first name.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.demographics.firstName",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Patient.name.given[0]"
          },
          {
            "identity": "CDA",
            "language": "application/hl7-sda+xml",
            "map": "ClinicalDocument.recordTarget.patient.name.given[1]"
          },
          {
            "identity": "HL7V2",
            "language": "application/edi-hl7v2",
            "map": "ADT_A01.PID.5.2"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Patient.name.given",
            "comment": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient.name.given[0]"
          }
        ]
      },
      {
        "id": "ExampleMap.demographics.middleName",
        "path": "ExampleMap.demographics.middleName",
        "short": "Middle Name",
        "definition": "Indicate the patient's middle names.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "ExampleMap.demographics.middleName",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Patient.name.given[position()>0]"
          },
          {
            "identity": "CDA",
            "language": "application/hl7-sda+xml",
            "map": "ClinicalDocument.recordTarget.patient.name.given[position()>1]"
          },
          {
            "identity": "HL7V2",
            "language": "application/edi-hl7v2",
            "map": "ADT_A01.PID.5.3"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Patient.name.given",
            "comment": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient.name.given[position()>1]"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation",
        "path": "ExampleMap.episodeInformation",
        "short": "CathPCI Episode Information",
        "definition": "CathPCI Episode Information",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.episodeInformation",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.id",
        "path": "ExampleMap.episodeInformation.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.extension",
        "path": "ExampleMap.episodeInformation.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.modifierExtension",
        "path": "ExampleMap.episodeInformation.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.episodeUniqueKey",
        "path": "ExampleMap.episodeInformation.episodeUniqueKey",
        "short": "Episode Unique Key",
        "definition": "Indicate the unique key associated with each patient episode record as assigned by the EMR/EHR or your software application.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.episodeInformation.episodeUniqueKey",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "iif(Encounter.identifier(type.code='VN').value, Encounter.identifier(type.code='VN').value, Encounter.identifier[0].value)"
          },
          {
            "identity": "CDA",
            "language": "application/hl7-sda+xml",
            "map": "ClinicalDocument.componentOf.encompassingEncounter.id"
          },
          {
            "identity": "HL7V2",
            "language": "application/edi-hl7v2",
            "map": "ADT_A01.PV1.19.1"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Encounter.identifier",
            "comment": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter.identifier[0].value)"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.admissionDateAndTime",
        "path": "ExampleMap.episodeInformation.admissionDateAndTime",
        "short": "Admission Date and Time",
        "definition": "Admission Date and Time",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.episodeInformation.admissionDateAndTime",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Encounter.period.start"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.healthInsurance",
        "path": "ExampleMap.episodeInformation.healthInsurance",
        "short": "Health Insurance",
        "definition": "Indicate if the patient has health insurance.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.episodeInformation.healthInsurance",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Claim.where(encounter=Encounter.id).insurance.coverage.exists()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.healthInsuranceClaimNumber",
        "path": "ExampleMap.episodeInformation.healthInsuranceClaimNumber",
        "short": "Health Insurance Claim Number (HIC)",
        "definition": "Indicate the patient's Health Insurance Claim (HIC) number.    Note(s):  Enter the Health Insurance Claim (HIC) number for those patients covered by Medicare. Patients with other insurances will not have a HIC number.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.episodeInformation.healthInsuranceClaimNumber",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "resolve(Claim.where(encounter=Encounter.id).insurance.coverage).identifier.value"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.healthInsurancePaymentSource",
        "path": "ExampleMap.episodeInformation.healthInsurancePaymentSource",
        "short": "Health Insurance Payment Source",
        "definition": "Indicate the patient's health insurance payment type.    Note(s):  If the patient has multiple insurance payors, select all payors.    If there is uncertainty regarding how to identify a specific health insurance plan, please discuss with your billing department to understand how it should be identified in the registry.",
        "min": 1,
        "max": "*",
        "base": {
          "path": "ExampleMap.episodeInformation.healthInsurancePaymentSource",
          "min": 1,
          "max": "*"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "resolve(Claim.where(encounter=Encounter.id)).insurer.display.value"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.medicareBeneficiaryIdentifier",
        "path": "ExampleMap.episodeInformation.medicareBeneficiaryIdentifier",
        "short": "Medicare Beneficiary Identifier",
        "definition": "Medicare Beneficiary Identifier",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.episodeInformation.medicareBeneficiaryIdentifier",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Patient.identifier.where(system='http://hl7.org/fhir/sid/us-mbi').value"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.patientEnrolledInResearchStudy",
        "path": "ExampleMap.episodeInformation.patientEnrolledInResearchStudy",
        "short": "Patient Enrolled in Research Study",
        "definition": "Indicate if the patient is enrolled in an ongoing ACC - NCDR research study related to this registry.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.episodeInformation.patientEnrolledInResearchStudy",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "ResearchSubject.where(patient=Patient.id and period.overlaps(Encounter.period)).exists()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.patientRestriction",
        "path": "ExampleMap.episodeInformation.patientRestriction",
        "short": "Patient Restriction",
        "definition": "Indicate if the patient requested for their information not to be used for any research or studies for the associated episode of care.    Note(s):  Documentation must be found in the patient record to support the request of removal of their information.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.episodeInformation.patientRestriction",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Patient.meta.securityLabel.memberOf(%Restricted)"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.arrivalInformation",
        "path": "ExampleMap.arrivalInformation",
        "short": "Patient Arrival Information",
        "definition": "Patient Arrival Information",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.arrivalInformation",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "ExampleMap.arrivalInformation.id",
        "path": "ExampleMap.arrivalInformation.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ExampleMap.arrivalInformation.extension",
        "path": "ExampleMap.arrivalInformation.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ExampleMap.arrivalInformation.modifierExtension",
        "path": "ExampleMap.arrivalInformation.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ExampleMap.arrivalInformation.numberOfTransferringFacilityUnavailable",
        "path": "ExampleMap.arrivalInformation.numberOfTransferringFacilityUnavailable",
        "short": "Number of Transferring Facility Unavailable",
        "definition": "Number of Transferring Facility Unavailable",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.arrivalInformation.numberOfTransferringFacilityUnavailable",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "resolve(Encounter.hospital.where(admitSource.coding.where(code ='hosp-trans' and system='http://terminology.hl7.org/CodeSystem/admit-source')).origin).identifier.where(system='').exists().not()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.arrivalInformation.transferringFacilityAmericanHospitalAssociationName",
        "path": "ExampleMap.arrivalInformation.transferringFacilityAmericanHospitalAssociationName",
        "short": "Transferring Facility American Hospital Association Name",
        "definition": "Transferring Facility American Hospital Association Name",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.arrivalInformation.transferringFacilityAmericanHospitalAssociationName",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "resolve(Encounter.hospital.where(admitSource.coding.where(code ='hosp-trans' and system='http://terminology.hl7.org/CodeSystem/admit-source')).origin).name"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.arrivalInformation.transferringFacilityAmericanHospitalAssociationNumber",
        "path": "ExampleMap.arrivalInformation.transferringFacilityAmericanHospitalAssociationNumber",
        "short": "Transferring Facility American Hospital Association Number",
        "definition": "Transferring Facility American Hospital Association Number",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.arrivalInformation.transferringFacilityAmericanHospitalAssociationNumber",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "resolve(Encounter.hospital.where(admitSource.coding.where(code ='hosp-trans' and system='http://terminology.hl7.org/CodeSystem/admit-source')).origin).identifier.where(system='').value"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus",
        "path": "ExampleMap.cardiacStatus",
        "short": "Patient Cardiac Status",
        "definition": "Patient Cardiac Status",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.cardiacStatus",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.id",
        "path": "ExampleMap.cardiacStatus.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.extension",
        "path": "ExampleMap.cardiacStatus.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.modifierExtension",
        "path": "ExampleMap.cardiacStatus.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.bystanderCardiopulmonaryResuscitation",
        "path": "ExampleMap.cardiacStatus.bystanderCardiopulmonaryResuscitation",
        "short": "Bystander Cardiopulmonary Resuscitation",
        "definition": "Bystander Cardiopulmonary Resuscitation",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.cardiacStatus.bystanderCardiopulmonaryResuscitation",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='112000000186' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.cardiacArrestAfterArrivalOfEmergencyMedicalServices",
        "path": "ExampleMap.cardiacStatus.cardiacArrestAfterArrivalOfEmergencyMedicalServices",
        "short": "Cardiac Arrest After Arrival of Emergency Medical Services",
        "definition": "Indicate if the out-of-hospital cardiac arrest occurred after arrival of Emergency Medical Services (EMS).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.cardiacStatus.cardiacArrestAfterArrivalOfEmergencyMedicalServices",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='100014081' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.cardiacArrestAtTransferringHealthcareFacility",
        "path": "ExampleMap.cardiacStatus.cardiacArrestAtTransferringHealthcareFacility",
        "short": "Cardiac Arrest at Transferring Healthcare Facility",
        "definition": "Indicate if the patient had cardiac arrest at the transferring healthcare facility prior to arrival at the current facility.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.cardiacStatus.cardiacArrestAtTransferringHealthcareFacility",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='100014016' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.cardiacArrestOutOfHealthcareFacility",
        "path": "ExampleMap.cardiacStatus.cardiacArrestOutOfHealthcareFacility",
        "short": "Cardiac Arrest Out of Healthcare Facility",
        "definition": "Indicate if a cardiac arrest event occurred outside of any healthcare facility.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.cardiacStatus.cardiacArrestOutOfHealthcareFacility",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='10001424808' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.cardiacArrestWitnessed",
        "path": "ExampleMap.cardiacStatus.cardiacArrestWitnessed",
        "short": "Cardiac Arrest Witnessed",
        "definition": "Indicate if the out-of-hospital cardiac arrest was witnessed by another person.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.cardiacStatus.cardiacArrestWitnessed",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='100014082' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.firstCardiacArrestRhythm",
        "path": "ExampleMap.cardiacStatus.firstCardiacArrestRhythm",
        "short": "First Cardiac Arrest Rhythm",
        "definition": "Indicate if the initial out-of-hospital cardiac arrest rhythm was a shockable rhythm.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.cardiacStatus.firstCardiacArrestRhythm",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='100014013' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.firstCardiacArrestRhythmUnknown",
        "path": "ExampleMap.cardiacStatus.firstCardiacArrestRhythmUnknown",
        "short": "First Cardiac Arrest Rhythm Unknown",
        "definition": "Indicate if the initial out-of-hospital cardiac arrest rhythm was unknown.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.cardiacStatus.firstCardiacArrestRhythmUnknown",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='100014013' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors",
        "path": "ExampleMap.historyAndRiskFactors",
        "short": "Patient History and Risk Factors",
        "definition": "Patient History and Risk Factors",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.historyAndRiskFactors",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.id",
        "path": "ExampleMap.historyAndRiskFactors.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.extension",
        "path": "ExampleMap.historyAndRiskFactors.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.modifierExtension",
        "path": "ExampleMap.historyAndRiskFactors.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.basicActivitiesOfDailyLiving",
        "path": "ExampleMap.historyAndRiskFactors.basicActivitiesOfDailyLiving",
        "short": "Basic Activities of Daily Living",
        "definition": "Basic Activities of Daily Living",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.historyAndRiskFactors.basicActivitiesOfDailyLiving",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='112000000180' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.basicActivitiesOfDailyLivingUnknown",
        "path": "ExampleMap.historyAndRiskFactors.basicActivitiesOfDailyLivingUnknown",
        "short": "Basic Activities of Daily Living Unknown",
        "definition": "Basic Activities of Daily Living Unknown",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.historyAndRiskFactors.basicActivitiesOfDailyLivingUnknown",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='112000000180' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.cognition",
        "path": "ExampleMap.historyAndRiskFactors.cognition",
        "short": "Cognition",
        "definition": "Cognition",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.historyAndRiskFactors.cognition",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='112000000140' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.cognitionUnknown",
        "path": "ExampleMap.historyAndRiskFactors.cognitionUnknown",
        "short": "Cognition Unknown",
        "definition": "Cognition Unknown",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.historyAndRiskFactors.cognitionUnknown",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='112000000140' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.smokingAmount",
        "path": "ExampleMap.historyAndRiskFactors.smokingAmount",
        "short": "Smoking Amount",
        "definition": "Indicate the amount of cigarette smoking reported by the patient.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.historyAndRiskFactors.smokingAmount",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='100001256' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.tobaccoType",
        "path": "ExampleMap.historyAndRiskFactors.tobaccoType",
        "short": "Tobacco Type",
        "definition": "<<< CathPCI - Instruction >>> Indicate the type of tobacco product the patient uses. <<< CPMI - Instruction >>> Indicate the frequency that the patient uses tobacco.    Note(s): Consider use of any tobacco product as equivalent to a cigarette for referenced definitions.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.historyAndRiskFactors.tobaccoType",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='266918002' and system='http://snomed.info/sct' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.tobaccoUse",
        "path": "ExampleMap.historyAndRiskFactors.tobaccoUse",
        "short": "Tobacco Use",
        "definition": "Indicate the frequency that the patient uses tobacco. Note(s): Consider use of any tobacco product as equivalent to a cigarette for referenced definitions.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.historyAndRiskFactors.tobaccoUse",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='110483000' and system='http://snomed.info/sct' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.walking",
        "path": "ExampleMap.historyAndRiskFactors.walking",
        "short": "Walking",
        "definition": "Walking",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.historyAndRiskFactors.walking",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='116329008' and system='http://snomed.info/sct' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.walkingUnknown",
        "path": "ExampleMap.historyAndRiskFactors.walkingUnknown",
        "short": "Walking Unknown",
        "definition": "Walking Unknown",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.historyAndRiskFactors.walkingUnknown",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='116329008' and system='http://snomed.info/sct' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.researchStudy",
        "path": "ExampleMap.researchStudy",
        "short": "Research Study Information",
        "definition": "Research Study Information",
        "min": 0,
        "max": "1",
        "base": {
          "path": "ExampleMap.researchStudy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "ExampleMap.researchStudy.id",
        "path": "ExampleMap.researchStudy.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ExampleMap.researchStudy.extension",
        "path": "ExampleMap.researchStudy.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ExampleMap.researchStudy.modifierExtension",
        "path": "ExampleMap.researchStudy.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ExampleMap.researchStudy.researchStudyName",
        "path": "ExampleMap.researchStudy.researchStudyName",
        "short": "Research Study Name",
        "definition": "Indicate the research study name as provided by the research study protocol.    Note(s):  If the patient is in more than one research study, list each separately.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.researchStudy.researchStudyName",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "resolve(ResearchSubject.where(patient=Patient.id and period.overlaps(Encounter.period)).researchStudy).title"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.researchStudy.researchStudyPatientId",
        "path": "ExampleMap.researchStudy.researchStudyPatientId",
        "short": "Research Study Patient ID",
        "definition": "Indicate the research study patient identification number as assigned by the research protocol.    Note(s):  If the patient is in more than one research study, list each separately.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ExampleMap.researchStudy.researchStudyPatientId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "ResearchSubject.where( individual = Patient.id and ((( Encounter.period.start >= period.start ) and (Encounter.period.start <= period.end)) or ((Encounter.period.end >= period.start) and  (Encounter.period.end <= period.end )))).identifier"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "ExampleMap",
        "path": "ExampleMap",
        "short": "Example Submission Map",
        "definition": "This is an example of the data that would be used for a Resgistry Submission.\nThe full map is a logical model as that allows conformance to the FHIR Standard the way a custom Resource would not.\nEach element has the short name of the data, a full description and the paths to fetch and place the information, by data standard type, for each.\nA section (such as Demographics) is a BackboneElement (holds no values).  All subordinate elements are strings.\nEach mapping includes the following:\n* identity = standard used for the mapping (e.g., FHIR)\n* language = mime type that matches identity\n* map = FHIRPath expression of the path to the data\n* comment = *Output mapping only* Resource/Profile for inclusion in the Submission Bundle"
      },
      {
        "id": "ExampleMap.demographics",
        "path": "ExampleMap.demographics",
        "short": "Patient Demographics",
        "definition": "Patient Demographics",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "ExampleMap.demographics.lastName",
        "path": "ExampleMap.demographics.lastName",
        "short": "Last Name",
        "definition": "Indicate the patient's last name. Hyphenated names should be recorded with a hyphen.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Patient.name.family"
          },
          {
            "identity": "CDA",
            "language": "application/hl7-sda+xml",
            "map": "ClinicalDocument.recordTarget.patient.name.family"
          },
          {
            "identity": "HL7V2",
            "language": "application/edi-hl7v2",
            "map": "ADT_A01.PID.5.1"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Patient.name.family",
            "comment": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient.name.family"
          }
        ]
      },
      {
        "id": "ExampleMap.demographics.firstName",
        "path": "ExampleMap.demographics.firstName",
        "short": "First Name",
        "definition": "Indicate the patient's first name.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Patient.name.given[0]"
          },
          {
            "identity": "CDA",
            "language": "application/hl7-sda+xml",
            "map": "ClinicalDocument.recordTarget.patient.name.given[1]"
          },
          {
            "identity": "HL7V2",
            "language": "application/edi-hl7v2",
            "map": "ADT_A01.PID.5.2"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Patient.name.given",
            "comment": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient.name.given[0]"
          }
        ]
      },
      {
        "id": "ExampleMap.demographics.middleName",
        "path": "ExampleMap.demographics.middleName",
        "short": "Middle Name",
        "definition": "Indicate the patient's middle names.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Patient.name.given[position()>0]"
          },
          {
            "identity": "CDA",
            "language": "application/hl7-sda+xml",
            "map": "ClinicalDocument.recordTarget.patient.name.given[position()>1]"
          },
          {
            "identity": "HL7V2",
            "language": "application/edi-hl7v2",
            "map": "ADT_A01.PID.5.3"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Patient.name.given",
            "comment": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient.name.given[position()>1]"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation",
        "path": "ExampleMap.episodeInformation",
        "short": "CathPCI Episode Information",
        "definition": "CathPCI Episode Information",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.episodeUniqueKey",
        "path": "ExampleMap.episodeInformation.episodeUniqueKey",
        "short": "Episode Unique Key",
        "definition": "Indicate the unique key associated with each patient episode record as assigned by the EMR/EHR or your software application.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "iif(Encounter.identifier(type.code='VN').value, Encounter.identifier(type.code='VN').value, Encounter.identifier[0].value)"
          },
          {
            "identity": "CDA",
            "language": "application/hl7-sda+xml",
            "map": "ClinicalDocument.componentOf.encompassingEncounter.id"
          },
          {
            "identity": "HL7V2",
            "language": "application/edi-hl7v2",
            "map": "ADT_A01.PV1.19.1"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Encounter.identifier",
            "comment": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter.identifier[0].value)"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.admissionDateAndTime",
        "path": "ExampleMap.episodeInformation.admissionDateAndTime",
        "short": "Admission Date and Time",
        "definition": "Admission Date and Time",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Encounter.period.start"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.healthInsurance",
        "path": "ExampleMap.episodeInformation.healthInsurance",
        "short": "Health Insurance",
        "definition": "Indicate if the patient has health insurance.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Claim.where(encounter=Encounter.id).insurance.coverage.exists()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.healthInsuranceClaimNumber",
        "path": "ExampleMap.episodeInformation.healthInsuranceClaimNumber",
        "short": "Health Insurance Claim Number (HIC)",
        "definition": "Indicate the patient's Health Insurance Claim (HIC) number.    Note(s):  Enter the Health Insurance Claim (HIC) number for those patients covered by Medicare. Patients with other insurances will not have a HIC number.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "resolve(Claim.where(encounter=Encounter.id).insurance.coverage).identifier.value"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.healthInsurancePaymentSource",
        "path": "ExampleMap.episodeInformation.healthInsurancePaymentSource",
        "short": "Health Insurance Payment Source",
        "definition": "Indicate the patient's health insurance payment type.    Note(s):  If the patient has multiple insurance payors, select all payors.    If there is uncertainty regarding how to identify a specific health insurance plan, please discuss with your billing department to understand how it should be identified in the registry.",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "resolve(Claim.where(encounter=Encounter.id)).insurer.display.value"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.medicareBeneficiaryIdentifier",
        "path": "ExampleMap.episodeInformation.medicareBeneficiaryIdentifier",
        "short": "Medicare Beneficiary Identifier",
        "definition": "Medicare Beneficiary Identifier",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Patient.identifier.where(system='http://hl7.org/fhir/sid/us-mbi').value"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.patientEnrolledInResearchStudy",
        "path": "ExampleMap.episodeInformation.patientEnrolledInResearchStudy",
        "short": "Patient Enrolled in Research Study",
        "definition": "Indicate if the patient is enrolled in an ongoing ACC - NCDR research study related to this registry.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "ResearchSubject.where(patient=Patient.id and period.overlaps(Encounter.period)).exists()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.episodeInformation.patientRestriction",
        "path": "ExampleMap.episodeInformation.patientRestriction",
        "short": "Patient Restriction",
        "definition": "Indicate if the patient requested for their information not to be used for any research or studies for the associated episode of care.    Note(s):  Documentation must be found in the patient record to support the request of removal of their information.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Patient.meta.securityLabel.memberOf(%Restricted)"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.arrivalInformation",
        "path": "ExampleMap.arrivalInformation",
        "short": "Patient Arrival Information",
        "definition": "Patient Arrival Information",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "ExampleMap.arrivalInformation.numberOfTransferringFacilityUnavailable",
        "path": "ExampleMap.arrivalInformation.numberOfTransferringFacilityUnavailable",
        "short": "Number of Transferring Facility Unavailable",
        "definition": "Number of Transferring Facility Unavailable",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "resolve(Encounter.hospital.where(admitSource.coding.where(code ='hosp-trans' and system='http://terminology.hl7.org/CodeSystem/admit-source')).origin).identifier.where(system='').exists().not()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.arrivalInformation.transferringFacilityAmericanHospitalAssociationName",
        "path": "ExampleMap.arrivalInformation.transferringFacilityAmericanHospitalAssociationName",
        "short": "Transferring Facility American Hospital Association Name",
        "definition": "Transferring Facility American Hospital Association Name",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "resolve(Encounter.hospital.where(admitSource.coding.where(code ='hosp-trans' and system='http://terminology.hl7.org/CodeSystem/admit-source')).origin).name"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.arrivalInformation.transferringFacilityAmericanHospitalAssociationNumber",
        "path": "ExampleMap.arrivalInformation.transferringFacilityAmericanHospitalAssociationNumber",
        "short": "Transferring Facility American Hospital Association Number",
        "definition": "Transferring Facility American Hospital Association Number",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "resolve(Encounter.hospital.where(admitSource.coding.where(code ='hosp-trans' and system='http://terminology.hl7.org/CodeSystem/admit-source')).origin).identifier.where(system='').value"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus",
        "path": "ExampleMap.cardiacStatus",
        "short": "Patient Cardiac Status",
        "definition": "Patient Cardiac Status",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.bystanderCardiopulmonaryResuscitation",
        "path": "ExampleMap.cardiacStatus.bystanderCardiopulmonaryResuscitation",
        "short": "Bystander Cardiopulmonary Resuscitation",
        "definition": "Bystander Cardiopulmonary Resuscitation",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='112000000186' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.cardiacArrestAfterArrivalOfEmergencyMedicalServices",
        "path": "ExampleMap.cardiacStatus.cardiacArrestAfterArrivalOfEmergencyMedicalServices",
        "short": "Cardiac Arrest After Arrival of Emergency Medical Services",
        "definition": "Indicate if the out-of-hospital cardiac arrest occurred after arrival of Emergency Medical Services (EMS).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='100014081' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.cardiacArrestAtTransferringHealthcareFacility",
        "path": "ExampleMap.cardiacStatus.cardiacArrestAtTransferringHealthcareFacility",
        "short": "Cardiac Arrest at Transferring Healthcare Facility",
        "definition": "Indicate if the patient had cardiac arrest at the transferring healthcare facility prior to arrival at the current facility.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='100014016' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.cardiacArrestOutOfHealthcareFacility",
        "path": "ExampleMap.cardiacStatus.cardiacArrestOutOfHealthcareFacility",
        "short": "Cardiac Arrest Out of Healthcare Facility",
        "definition": "Indicate if a cardiac arrest event occurred outside of any healthcare facility.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='10001424808' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.cardiacArrestWitnessed",
        "path": "ExampleMap.cardiacStatus.cardiacArrestWitnessed",
        "short": "Cardiac Arrest Witnessed",
        "definition": "Indicate if the out-of-hospital cardiac arrest was witnessed by another person.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='100014082' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.firstCardiacArrestRhythm",
        "path": "ExampleMap.cardiacStatus.firstCardiacArrestRhythm",
        "short": "First Cardiac Arrest Rhythm",
        "definition": "Indicate if the initial out-of-hospital cardiac arrest rhythm was a shockable rhythm.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='100014013' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.cardiacStatus.firstCardiacArrestRhythmUnknown",
        "path": "ExampleMap.cardiacStatus.firstCardiacArrestRhythmUnknown",
        "short": "First Cardiac Arrest Rhythm Unknown",
        "definition": "Indicate if the initial out-of-hospital cardiac arrest rhythm was unknown.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='100014013' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors",
        "path": "ExampleMap.historyAndRiskFactors",
        "short": "Patient History and Risk Factors",
        "definition": "Patient History and Risk Factors",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.basicActivitiesOfDailyLiving",
        "path": "ExampleMap.historyAndRiskFactors.basicActivitiesOfDailyLiving",
        "short": "Basic Activities of Daily Living",
        "definition": "Basic Activities of Daily Living",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='112000000180' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.basicActivitiesOfDailyLivingUnknown",
        "path": "ExampleMap.historyAndRiskFactors.basicActivitiesOfDailyLivingUnknown",
        "short": "Basic Activities of Daily Living Unknown",
        "definition": "Basic Activities of Daily Living Unknown",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='112000000180' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.cognition",
        "path": "ExampleMap.historyAndRiskFactors.cognition",
        "short": "Cognition",
        "definition": "Cognition",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='112000000140' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.cognitionUnknown",
        "path": "ExampleMap.historyAndRiskFactors.cognitionUnknown",
        "short": "Cognition Unknown",
        "definition": "Cognition Unknown",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='112000000140' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.smokingAmount",
        "path": "ExampleMap.historyAndRiskFactors.smokingAmount",
        "short": "Smoking Amount",
        "definition": "Indicate the amount of cigarette smoking reported by the patient.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='100001256' and system='https://cvquality.acc.org/NCDR' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.tobaccoType",
        "path": "ExampleMap.historyAndRiskFactors.tobaccoType",
        "short": "Tobacco Type",
        "definition": "<<< CathPCI - Instruction >>> Indicate the type of tobacco product the patient uses. <<< CPMI - Instruction >>> Indicate the frequency that the patient uses tobacco.    Note(s): Consider use of any tobacco product as equivalent to a cigarette for referenced definitions.     ",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='266918002' and system='http://snomed.info/sct' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.tobaccoUse",
        "path": "ExampleMap.historyAndRiskFactors.tobaccoUse",
        "short": "Tobacco Use",
        "definition": "Indicate the frequency that the patient uses tobacco. Note(s): Consider use of any tobacco product as equivalent to a cigarette for referenced definitions.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='110483000' and system='http://snomed.info/sct' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.walking",
        "path": "ExampleMap.historyAndRiskFactors.walking",
        "short": "Walking",
        "definition": "Walking",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='116329008' and system='http://snomed.info/sct' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.historyAndRiskFactors.walkingUnknown",
        "path": "ExampleMap.historyAndRiskFactors.walkingUnknown",
        "short": "Walking Unknown",
        "definition": "Walking Unknown",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "Observation.where(code='116329008' and system='http://snomed.info/sct' and effectiveDateTime > %Encounter.period.start).first()"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.researchStudy",
        "path": "ExampleMap.researchStudy",
        "short": "Research Study Information",
        "definition": "Research Study Information",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "ExampleMap.researchStudy.researchStudyName",
        "path": "ExampleMap.researchStudy.researchStudyName",
        "short": "Research Study Name",
        "definition": "Indicate the research study name as provided by the research study protocol.    Note(s):  If the patient is in more than one research study, list each separately.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "resolve(ResearchSubject.where(patient=Patient.id and period.overlaps(Encounter.period)).researchStudy).title"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      },
      {
        "id": "ExampleMap.researchStudy.researchStudyPatientId",
        "path": "ExampleMap.researchStudy.researchStudyPatientId",
        "short": "Research Study Patient ID",
        "definition": "Indicate the research study patient identification number as assigned by the research protocol.    Note(s):  If the patient is in more than one research study, list each separately.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "FHIR",
            "language": "application/fhir",
            "map": "ResearchSubject.where( individual = Patient.id and ((( Encounter.period.start >= period.start ) and (Encounter.period.start <= period.end)) or ((Encounter.period.end >= period.start) and  (Encounter.period.end <= period.end )))).identifier"
          },
          {
            "identity": "Output",
            "language": "application/fhir",
            "map": "Observation",
            "comment": "Observation"
          }
        ]
      }
    ]
  }
}