{
  "resourceType": "ConceptMap",
  "id": "nexus-appointment-status",
  "url": "https://fhir.apps.health/ConceptMap/nexus-appointment-status",
  "name": "NexusAppointmentStatusMap",
  "title": "Appointment Status to FHIR Appointment Status",
  "status": "draft",
  "experimental": false,
  "description": "Maps each Nexus EMR appointment status to the `Appointment.status` code it is written as, and each\n`Appointment.status` code to the status it reads as. The appointment's status control writes a\nstatus through this mapping, and both the control and the schedule's appointment tiles read a stored\ncode back through it.",
  "purpose": "So that the status control and the schedule tiles agree on the status of a stored appointment.",
  "group": [
    {
      "source": "https://fhir.apps.health/CodeSystem/nexus-appointment-status",
      "target": "http://hl7.org/fhir/appointmentstatus",
      "element": [
        {
          "code": "to-do",
          "display": "To do",
          "target": [
            {
              "code": "booked",
              "display": "Booked",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "code": "here",
          "display": "Here",
          "target": [
            {
              "code": "arrived",
              "display": "Arrived",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "code": "in-room",
          "display": "In room",
          "target": [
            {
              "code": "checked-in",
              "display": "Checked In",
              "equivalence": "wider",
              "comment": "`checked-in` says the pre-visit work is done and the encounter may begin; being in a room is one case of that."
            }
          ]
        },
        {
          "code": "no-show",
          "display": "No show",
          "target": [
            {
              "code": "noshow",
              "display": "No Show",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "code": "cancelled",
          "display": "Cancelled",
          "target": [
            {
              "code": "cancelled",
              "display": "Cancelled",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "code": "billed",
          "display": "Billed",
          "target": [
            {
              "code": "fulfilled",
              "display": "Fulfilled",
              "equivalence": "wider",
              "comment": "`fulfilled` says the visit took place, not that it was billed."
            }
          ]
        }
      ]
    },
    {
      "source": "http://hl7.org/fhir/appointmentstatus",
      "target": "https://fhir.apps.health/CodeSystem/nexus-appointment-status",
      "element": [
        {
          "code": "booked",
          "display": "Booked",
          "target": [
            {
              "code": "to-do",
              "display": "To do",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "code": "proposed",
          "display": "Proposed",
          "target": [
            {
              "code": "to-do",
              "display": "To do",
              "equivalence": "wider"
            }
          ]
        },
        {
          "code": "pending",
          "display": "Pending",
          "target": [
            {
              "code": "to-do",
              "display": "To do",
              "equivalence": "wider"
            }
          ]
        },
        {
          "code": "waitlist",
          "display": "Waitlisted",
          "target": [
            {
              "code": "to-do",
              "display": "To do",
              "equivalence": "wider"
            }
          ]
        },
        {
          "code": "arrived",
          "display": "Arrived",
          "target": [
            {
              "code": "here",
              "display": "Here",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "code": "checked-in",
          "display": "Checked In",
          "target": [
            {
              "code": "in-room",
              "display": "In room",
              "equivalence": "narrower",
              "comment": "`checked-in` says the pre-visit work is done and the encounter may begin; being in a room is one case of that."
            }
          ]
        },
        {
          "code": "noshow",
          "display": "No Show",
          "target": [
            {
              "code": "no-show",
              "display": "No show",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "code": "cancelled",
          "display": "Cancelled",
          "target": [
            {
              "code": "cancelled",
              "display": "Cancelled",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "code": "fulfilled",
          "display": "Fulfilled",
          "target": [
            {
              "code": "billed",
              "display": "Billed",
              "equivalence": "narrower",
              "comment": "`fulfilled` says the visit took place, not that it was billed."
            }
          ]
        },
        {
          "code": "entered-in-error",
          "display": "Entered in error",
          "target": [
            {
              "equivalence": "unmatched",
              "comment": "An appointment entered in error is left off the schedule, so it reads as no status."
            }
          ]
        }
      ]
    }
  ]
}
