PackagesCanonicalsLogsProblems
    Packages
    synapxe.sgcdi@1.2.2
    https://fhir.synapxe.sg/StructureDefinition/profile-appointment
description: This resource will be used to store a booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time.
package_name: synapxe.sgcdi
derivation: constraint
name: Appointment
type: Appointment
elements:
  description: {index: 49}
  serviceCategory:
    type: CodeableConcept
    short: Patient type code
    binding: {strength: required, valueSet: 'https://fhir.synapxe.sg/ValueSet/patient-type'}
    index: 22
    extensions: {}
    elements:
      extension: {index: 23}
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'https://fhir.synapxe.sg/CodeSystem/patient-type'}
            index: 24
          code: {index: 25}
  slot: {index: 61}
  previousAppointment: {index: 55}
  originatingAppointment:
    type: Reference
    refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-appointment']
    index: 56
    elements:
      id: {index: 57}
      extension: {index: 58}
    extensions: {}
  recurrenceId: {index: 93}
  cancellationDate: {index: 64}
  specialty:
    type: CodeableConcept
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/c80-practice-codes'}
    index: 34
    extensions: {}
    elements:
      extension: {index: 35}
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'http://snomed.info/sct'}
            index: 36
          code: {index: 37}
  occurrenceChanged: {index: 94}
  requestedPeriod: {index: 60}
  patientInstruction: {index: 71}
  recurrenceTemplate: {index: 95}
  start: {index: 59}
  created: {index: 63}
  participant:
    elements:
      id: {index: 80}
      extension: {index: 81}
      modifierExtension: {index: 82}
      type:
        type: CodeableConcept
        binding: {strength: required, valueSet: 'https://fhir.synapxe.sg/ValueSet/appointment-participant-type'}
        index: 83
        extensions: {}
        elements:
          extension: {index: 84}
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType'}
                index: 85
              code: {index: 86}
      period: {index: 87}
      actor:
        type: Reference
        refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-organization', 'https://fhir.synapxe.sg/StructureDefinition/profile-practitioner']
        index: 88
        elements:
          id: {index: 89}
          extension: {index: 90}
          identifier: {type: Identifier, index: 91}
        extensions: {}
      required: {index: 92}
    extensions: {}
    required: [type, actor]
  serviceType:
    short: Appointment type code
    index: 26
    elements:
      id: {index: 27}
      extension: {index: 28}
      concept:
        type: CodeableConcept
        binding: {strength: required, valueSet: 'https://fhir.synapxe.sg/ValueSet/appointment-type'}
        index: 29
        extensions: {}
        elements:
          extension: {index: 30}
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.synapxe.sg/CodeSystem/appointment-type'}
                index: 31
              code: {index: 32}
      reference: {index: 33}
    extensions: {}
    required: [concept]
  note:
    index: 65
    elements:
      id: {index: 66}
      extension: {index: 67}
      author:
        choices: []
        index: 69
      time: {index: 70}
    extensions: {}
  account: {index: 62}
  virtualService: {index: 51}
  reason:
    type: CodeableReference
    index: 41
    elements:
      id: {index: 42}
      extension: {index: 43}
      concept:
        type: CodeableConcept
        binding: {strength: required, valueSet: 'https://fhir.synapxe.sg/ValueSet/reason-for-appointment'}
        index: 44
        extensions: {}
        elements:
          extension: {index: 45}
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.synapxe.sg/CodeSystem/reason-for-appointment'}
                index: 46
              code: {index: 47}
    extensions: {}
  contained:
    type: Resource
    short: A grouping of people or organizations with a common purpose
    constraint:
      dom-2: {human: 'If the resource is contained in another resource, it SHALL NOT contain nested Resources', source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: error, expression: contained.contained.empty()}
      dom-4: {human: 'If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated', source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: error, expression: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()}
      dom-3: {human: 'If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource', source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: error, expression: 'contained.where(((''#''+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = ''#'').exists() or descendants().where(ofType(canonical) = ''#'').exists() or descendants().where(ofType(canonical) = ''#'').exists()).not()).trace(''unmatched'', id).empty()'}
      dom-6: {human: A resource should have narrative for robust management, source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: warning, expression: text.`div`.exists()}
      dom-5: {human: 'If a resource is contained in another resource, it SHALL NOT have a security label', source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: error, expression: contained.meta.security.empty()}
      org-1: {human: 'The organization SHALL at least have a name or an identifier, and possibly more than one', source: 'http://hl7.org/fhir/StructureDefinition/Organization', severity: error, expression: (identifier.count() + name.count()) > 0}
    index: 0
  supportingInformation:
    type: Reference
    refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-location']
    index: 52
    elements:
      id: {index: 53}
      extension: {index: 54}
    extensions: {}
  priority: {index: 48}
  appointmentType:
    type: CodeableConcept
    short: The movement type associated with the appointment can be represented as an admission or visit type
    binding: {strength: required, valueSet: 'https://fhir.synapxe.sg/ValueSet/movement-type'}
    index: 38
    extensions: {}
    elements:
      extension: {index: 39}
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'https://fhir.synapxe.sg/CodeSystem/movement-type'}
            index: 40
  status: {index: 5}
  class:
    short: inpatient | outpatient
    index: 10
    elements:
      id: {index: 11}
      extension: {index: 12}
      coding:
        index: 13
        elements:
          id: {index: 14}
          extension: {index: 15}
          system:
            pattern: {type: Uri, value: 'https://fhir.synapxe.sg/CodeSystem/patienttype'}
            index: 16
          version: {index: 17}
          code: {index: 18}
          display: {index: 19}
          userSelected: {index: 20}
        extensions: {}
        required: [display, system, code]
      text: {index: 21}
    extensions: {}
    required: [coding]
  cancellationReason:
    type: CodeableConcept
    binding: {strength: required, valueSet: 'https://fhir.synapxe.sg/ValueSet/reasonforcancellation'}
    index: 6
    extensions: {}
    elements:
      extension: {index: 7}
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'https://fhir.synapxe.sg/CodeSystem/reasonforcancellation'}
            index: 8
          code: {index: 9}
  identifier:
    type: Identifier
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        recordIdentifier:
          match: {system: null}
          schema: {type: Identifier, _required: true, index: 2}
          min: 1
          max: 1
        appointmentIdentifier:
          match: {system: null}
          schema: {type: Identifier, _required: true, index: 3}
          min: 1
          max: 1
        groupNo:
          match: {system: null}
          schema: {type: Identifier, index: 4}
          max: 1
  replaces: {index: 50}
  basedOn:
    type: Reference
    short: The referral information of this appointment
    refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-servicerequest']
    index: 72
    elements:
      id: {index: 73}
      extension: {index: 74}
      identifier: {type: Identifier, index: 75}
    extensions: {}
  subject:
    type: Reference
    refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-patient']
    index: 76
    elements:
      id: {index: 77}
      extension: {index: 78}
      identifier: {type: Identifier, index: 79}
    extensions: {}
package_version: 1.2.2
class: profile
kind: resource
url: https://fhir.synapxe.sg/StructureDefinition/profile-appointment
base: http://hl7.org/fhir/StructureDefinition/Appointment
version: 1.2.2
required: [start, identifier, subject, reason]