{
  "resourceType": "StructureDefinition",
  "id": "SessionsAttendedObservation",
  "url": "http://hl7.org/fhir/us/bser/StructureDefinition/SessionsAttendedObservation",
  "name": "BSeR Sessions Attended Observation",
  "status": "draft",
  "publisher": "Hi3 Solutions",
  "contact": [
    {
      "name": "AbdulMalik Shakir",
      "telecom": [
        {
          "system": "phone",
          "value": "6266444491",
          "use": "work"
        },
        {
          "system": "email",
          "value": "abdulmalik.shakir@hi3solutions.com",
          "use": "work"
        }
      ]
    }
  ],
  "kind": "resource",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Observation"
  ],
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-observationresults",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation"
      },
      {
        "id": "Observation.id",
        "path": "Observation.id",
        "short": "id",
        "definition": "MAY contain zero or one [0..1] id (CONF:4383-811).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Observation.meta",
        "path": "Observation.meta",
        "short": "meta",
        "definition": "MAY contain zero or one [0..1] meta (CONF:4383-810).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Observation.meta.profile",
        "path": "Observation.meta.profile",
        "short": "profile",
        "definition": "The meta, if present, SHALL contain exactly one [1..1] profile=\"http://hl7.org/fhir/us/bser/StructureDefinition/SessionsAttendedObservation\" (CONF:4383-812).",
        "min": 1,
        "max": "1",
        "patternString": "http://hl7.org/fhir/us/bser/StructureDefinition/SessionsAttendedObservation"
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "short": "status",
        "definition": "SHALL contain exactly one [1..1] status=\"\"Final\"\" (CONF:4383-413).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedString": "\"Final\""
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "short": "category",
        "definition": "SHALL contain exactly one [1..1] category=\"\"procedure\"\" (CONF:4383-414).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "fixedCodeableConcept": {
          "coding": [
            {
              "code": "\"procedure\""
            }
          ]
        }
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "short": "code",
        "definition": "SHALL contain exactly one [1..1] code, which SHALL be selected from ValueSet Sessions-attended-observation-code http://hl7.org/fhir/ValueSet/Sessions-attended-observation-code DYNAMIC (CONF:4383-415).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/Sessions-attended-observation-code",
            "display": "Sessions-attended-observation-code"
          }
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "short": "subject",
        "definition": "SHALL contain exactly one [1..1] subject=\"BSeR Patient\" (CONF:4383-813).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location"
          }
        ],
        "patternString": "BSeR Patient"
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "short": "effective[x]",
        "definition": "SHOULD contain zero or one [0..1] effective[x], where effective[x] is (CONF:4383-410)",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Observation.effective[x]:effectiveDateTime",
        "path": "Observation.effectiveDateTime",
        "sliceName": "effectiveDateTime",
        "short": "effectiveDateTime",
        "definition": "effectiveDateTime (CONF:4383-416)"
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "short": "value[x]",
        "definition": "SHALL contain exactly one [1..1] value[x], where value[x] is (CONF:4383-411)",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.value[x]:valueQuantity",
        "path": "Observation.valueQuantity",
        "sliceName": "valueQuantity",
        "short": "valueQuantity",
        "definition": "valueQuantity (CONF:4383-412)"
      },
      {
        "id": "Observation.value[x]:valueQuantity.value",
        "path": "Observation.valueQuantity.value",
        "sliceName": "valueQuantity",
        "short": "value",
        "definition": "SHALL contain exactly one [1..1] value (CONF:4383-417).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "short": "component",
        "definition": "SHOULD contain zero or one [0..1] component (CONF:4383-675).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Observation.component.code",
        "path": "Observation.component.code",
        "short": "code",
        "definition": "The component, if present, SHALL contain exactly one [1..1] code (CONF:4383-676).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component.code.text",
        "path": "Observation.component.code.text",
        "short": "text",
        "definition": "This code SHALL contain exactly one [1..1] text=\"Total Sessions Available\" (CONF:4383-679).",
        "min": 1,
        "max": "1",
        "patternString": "Total Sessions Available"
      },
      {
        "id": "Observation.component.value[x]",
        "path": "Observation.component.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "short": "value[x]",
        "definition": "The component, if present, SHALL contain exactly one [1..1] value[x], where value[x] is (CONF:4383-677)",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component.value[x]:valueQuantity",
        "path": "Observation.component.valueQuantity",
        "sliceName": "valueQuantity",
        "short": "valueQuantity",
        "definition": "The component, if present, SHALL contain exactly one [1..1] valueQuantity (CONF:4383-678)."
      },
      {
        "id": "Observation.component.value[x]:valueQuantity.value",
        "path": "Observation.component.valueQuantity.value",
        "sliceName": "valueQuantity",
        "short": "value",
        "definition": "SHALL contain exactly one [1..1] value (CONF:4383-680).",
        "min": 1,
        "max": "1"
      }
    ]
  }
}