{
  "resourceType": "StructureDefinition",
  "id": "1fd7a494-be9a-47f9-9310-1082a77c5f86",
  "meta": {
    "versionId": "7",
    "lastUpdated": "2022-07-13T12:08:13.5433917+00:00",
    "profile": [
      "https://fhir.cambio.se/StructureDefinition/ObservationBoneAgeCore/v1"
    ]
  },
  "url": "https://fhir.cambio.se/StructureDefinition/ObservationBoneAgeCore/v1",
  "version": "1.0.0",
  "name": "ObservationBoneAgeCore",
  "status": "active",
  "date": "2021-12-28T08:02:38.8147654+00:00",
  "description": "Cambio Core profile for communicating the Bone age",
  "purpose": "is the degree of maturation of a child's bones\r\n\r\nhelps doctors estimate the maturity of a child's skeletal system. It's usually done by taking a single X-ray of the left wrist, hand, and fingers\r\n\r\nMeasured in years",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.org/attributebinding",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "short": "registered | final"
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "min": 1,
        "fixedCode": "123980006"
      },
      {
        "id": "Observation.code.coding.display",
        "path": "Observation.code.coding.display",
        "short": "Bone maturation age",
        "fixedString": "Bone age"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.subject.identifier",
        "path": "Observation.subject.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.subject.identifier:personnummer",
        "path": "Observation.subject.identifier",
        "sliceName": "personnummer"
      },
      {
        "id": "Observation.subject.identifier:personnummer.system",
        "path": "Observation.subject.identifier.system",
        "min": 1
      },
      {
        "id": "Observation.subject.identifier:personnummer.value",
        "path": "Observation.subject.identifier.value",
        "min": 1
      },
      {
        "id": "Observation.subject.identifier:samordningsnummer",
        "path": "Observation.subject.identifier",
        "sliceName": "samordningsnummer"
      },
      {
        "id": "Observation.subject.identifier:samordningsnummer.system",
        "path": "Observation.subject.identifier.system",
        "min": 1
      },
      {
        "id": "Observation.subject.identifier:samordningsnummer.value",
        "path": "Observation.subject.identifier.value",
        "min": 1
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.performer:practitioner",
        "path": "Observation.performer",
        "sliceName": "practitioner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer:practitioner.identifier.system",
        "path": "Observation.performer.identifier.system",
        "short": "Oid of the HSA catalogue",
        "min": 1,
        "fixedUri": "urn:oid:1.2.752.129.2.1.4.1"
      },
      {
        "id": "Observation.performer:practitioner.identifier.value",
        "path": "Observation.performer.identifier.value",
        "short": "The HSA ID of the Practitioner(staff)",
        "min": 1
      },
      {
        "id": "Observation.performer:practitionerRole",
        "path": "Observation.performer",
        "sliceName": "practitionerRole",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.cambio.se/StructureDefinition/PractitionerRoleLiteSe/v1"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer:practitionerRole.identifier.value",
        "path": "Observation.performer.identifier.value",
        "min": 1
      },
      {
        "id": "Observation.performer:organization",
        "path": "Observation.performer",
        "sliceName": "organization",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer:organization.identifier.system",
        "path": "Observation.performer.identifier.system",
        "short": "Oid of the HSA catalogue",
        "min": 1,
        "fixedUri": "urn:oid:1.2.752.129.2.1.4.1"
      },
      {
        "id": "Observation.performer:organization.identifier.value",
        "path": "Observation.performer.identifier.value",
        "short": "The HSA-ID of the organization(Unit)",
        "min": 1
      },
      {
        "id": "Observation.performer:patient",
        "path": "Observation.performer",
        "sliceName": "patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.value[x].value",
        "path": "Observation.value[x].value",
        "min": 1
      },
      {
        "id": "Observation.value[x].unit",
        "path": "Observation.value[x].unit",
        "min": 1
      },
      {
        "id": "Observation.value[x].system",
        "path": "Observation.value[x].system",
        "min": 1,
        "fixedUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.value[x].code",
        "path": "Observation.value[x].code",
        "min": 1
      },
      {
        "id": "Observation.method.coding.system",
        "path": "Observation.method.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.method.coding.code",
        "path": "Observation.method.coding.code",
        "min": 1,
        "binding": {
          "strength": "extensible",
          "description": "Bone age measuring methods",
          "valueSet": "https://cambio.codes/snomed/bone-age-measuring-method/v1"
        }
      }
    ]
  }
}