{
  "resourceType": "StructureDefinition",
  "id": "5e8cce6f-9b95-442d-9782-e80821f5aae6",
  "meta": {
    "lastUpdated": "2017-10-10T13:00:33.916+00:00"
  },
  "url": "http://AAUprofiles/StructureDefinition/DAS28Observation",
  "name": "DAS28Observation",
  "status": "draft",
  "experimental": true,
  "date": "2017-10-10",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "444060007"
      },
      {
        "id": "Observation.code.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.code.coding.display",
        "fixedString": "Disease activity score in rheumatoid arthritis using C-reactive protein (observable entity)"
      },
      {
        "id": "Observation.code.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.code.text",
        "short": "DAS28 Observable"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "short": "Observation of Danish patient",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://AAUprofiles/StructureDefinition/DanishPatient",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "short": "The Danish patient is responsible for the observation",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://AAUprofiles/StructureDefinition/DanishPatient",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueQuantity",
        "path": "Observation.valueQuantity",
        "sliceName": "valueQuantity",
        "short": "CalculatedDAS28score",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "valueQuantity:valueQuantity.value",
        "path": "Observation.valueQuantity.value",
        "min": 1,
        "minValueDecimal": 0,
        "maxValueDecimal": 10
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "max": "0"
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "code.coding.code"
            }
          ],
          "rules": "open"
        },
        "min": 4,
        "max": "4"
      },
      {
        "id": "Observation.component:TenderJointsCount",
        "path": "Observation.component",
        "sliceName": "TenderJointsCount",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:TenderJointsCount.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.component:TenderJointsCount.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "442736000"
      },
      {
        "id": "Observation.component:TenderJointsCount.code.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.component.code.coding.display",
        "fixedString": "Tender 28 joint count"
      },
      {
        "id": "Observation.component:TenderJointsCount.value[x]:valueQuantity",
        "path": "Observation.component.valueQuantity",
        "sliceName": "valueQuantity",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component:TenderJointsCount.value[x]:valueQuantity.value",
        "path": "Observation.component.valueQuantity.value",
        "min": 1
      },
      {
        "id": "Observation.component:SwollenJointsCount",
        "path": "Observation.component",
        "sliceName": "SwollenJointsCount",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:SwollenJointsCount.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.component:SwollenJointsCount.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "442687006"
      },
      {
        "id": "Observation.component:SwollenJointsCount.code.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.component.code.coding.display",
        "fixedString": "Swollen 28 joint count (observable entity)"
      },
      {
        "id": "Observation.component:SwollenJointsCount.value[x]:valueQuantity",
        "path": "Observation.component.valueQuantity",
        "sliceName": "valueQuantity",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component:SwollenJointsCount.value[x]:valueQuantity.value",
        "path": "Observation.component.valueQuantity.value",
        "min": 1
      },
      {
        "id": "Observation.component:CRP",
        "path": "Observation.component",
        "sliceName": "CRP",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:CRP.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.component:CRP.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "55235003"
      },
      {
        "id": "Observation.component:CRP.value[x]:valueQuantity",
        "path": "Observation.component.valueQuantity",
        "sliceName": "valueQuantity",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component:CRP.value[x]:valueQuantity.value",
        "path": "Observation.component.valueQuantity.value",
        "min": 1
      },
      {
        "id": "valueQuantity:valueQuantity.unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.component.valueQuantity.unit",
        "fixedString": "mg/L"
      },
      {
        "id": "valueQuantity:valueQuantity.system",
        "path": "Observation.component.valueQuantity.system",
        "fixedUri": "http://unitsofmeasssure.org"
      },
      {
        "id": "valueQuantity:valueQuantity.code",
        "path": "Observation.component.valueQuantity.code",
        "fixedCode": "mg/L"
      },
      {
        "id": "Observation.component:GeneralHealth",
        "path": "Observation.component",
        "sliceName": "GeneralHealth",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:GeneralHealth.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.component:GeneralHealth.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "446661009"
      },
      {
        "id": "Observation.component:GeneralHealth.code.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.component.code.coding.display",
        "fixedString": "Visual analog scale score"
      },
      {
        "id": "Observation.component:GeneralHealth.value[x]:valueQuantity",
        "path": "Observation.component.valueQuantity",
        "sliceName": "valueQuantity",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component:GeneralHealth.value[x]:valueQuantity.value",
        "path": "Observation.component.valueQuantity.value",
        "min": 1
      }
    ]
  }
}