{
  "resourceType": "StructureDefinition",
  "id": "eicr-travel-history",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2018-09-29T20:27:06.866+00:00"
  },
  "url": "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-travel-history",
  "version": "0.0.0",
  "name": "eicr-travel-history",
  "title": "eICR Travel History",
  "status": "draft",
  "date": "2018-08-01",
  "description": "The Electronic Case Reporting Travel History profile establishes the core elements, extensions, vocabularies and value sets for representing the following for electronic case reporting:\n\n-  The Initial Case Report subject's travel history as a string, an address or a coded location.\r\n-  Observation.effectiveTime contains the date or period of time spent in the location.\r\n-  It is possible to have multiple Observation.components, each containing a different location, but there is only a single effectiveTime. This allows for cases where a patient cannot remember exact dates of travel (e.g. I traveled to London, Paris, and Berlin in July and August 2016). However, most uses will involve a single component (location).\r\n-  Free text describing the travel history details and location can be entered using the Observation.component.valueCodeableConcept.text element\r\n-  Use component.codeableConcept to record a coded location\r\n-  Use component.extension to record a specific address",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "short": "eICR Travel History",
        "definition": "TODO",
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "420008001"
            }
          ]
        },
        "example": [
          {
            "label": "General",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "http://snomed.info/sct",
                  "code": "420008001",
                  "display": "Travel"
                }
              ],
              "text": "Travel History"
            }
          }
        ],
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "short": "Date or period of time spent in the location",
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/v3/ParticipationType",
              "code": "LOC",
              "display": "Location"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Observation.component.value[x]:valueCodeableConcept",
        "path": "Observation.component.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "example": [
          {
            "label": "General",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "urn:oid:1.0.3166.1",
                  "code": "FJI",
                  "display": "Fiji"
                }
              ]
            }
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/us/ecr/ValueSet/geographical-location-history"
          }
        }
      },
      {
        "id": "Observation.component.value[x]:valueCodeableConcept.extension",
        "path": "Observation.component.valueCodeableConcept.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.component.value[x]:valueCodeableConcept.extension:travelHistoryAddress",
        "path": "Observation.component.valueCodeableConcept.extension",
        "sliceName": "travelHistoryAddress",
        "short": "Travel history address",
        "definition": "Where the patient traveled to as an address e.g.country, city, street address if applicable. At the least, address must contain the country.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/us/ecr/StructureDefinition/extension-eicr-travel-history-address"
          }
        ]
      },
      {
        "id": "Observation.component.value[x]:valueCodeableConcept.coding",
        "path": "Observation.component.valueCodeableConcept.coding",
        "mustSupport": true
      },
      {
        "id": "Observation.component.value[x]:valueCodeableConcept.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.component.valueCodeableConcept.text",
        "mustSupport": true
      }
    ]
  }
}