{
  "resourceType": "StructureDefinition",
  "id": "8c41a3a4-590b-47f3-a30d-4bb2533ac7ea",
  "meta": {
    "versionId": "17",
    "lastUpdated": "2019-06-24T12:18:45.2236762+00:00"
  },
  "url": "http://roche.com/fhir/rdc/StructureDefinition/phg-device",
  "version": "1",
  "name": "phg-device",
  "status": "active",
  "date": "2019-06-24T12:18:44.899747+00:00",
  "description": "A Device represents a gateway or PHG",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "ACSPIX2FHIR",
      "name": "ACSPIX"
    },
    {
      "identity": "GREENDOT",
      "name": "Greendot"
    },
    {
      "identity": "GLUCI-CHEK",
      "name": "FHIR2ACSPIX"
    },
    {
      "identity": "CDF2FHIR",
      "name": "CDF2FHIR"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Device",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Device",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Device.identifier",
        "path": "Device.identifier",
        "max": "0"
      },
      {
        "id": "Device.status",
        "path": "Device.status",
        "min": 1,
        "fixedCode": "active",
        "mapping": [
          {
            "identity": "ACSPIX2FHIR",
            "map": "active",
            "comment": "Fixed value"
          },
          {
            "identity": "GREENDOT",
            "map": "active",
            "comment": "Fixed value"
          },
          {
            "identity": "CDF2FHIR",
            "map": "active",
            "comment": "."
          }
        ]
      },
      {
        "id": "Device.type",
        "path": "Device.type",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://roche.com/fhir/rdc/ValueSet/device-kind"
          }
        },
        "mapping": [
          {
            "identity": "GLUCI-CHEK",
            "map": "Software",
            "comment": "Hardcoded value for Gluci-Check"
          }
        ]
      },
      {
        "id": "Device.type.coding",
        "path": "Device.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Device.type.coding.system",
        "path": "Device.type.coding.system",
        "mapping": [
          {
            "identity": "ACSPIX2FHIR",
            "map": "http://roche.com/fhir/rdc/cdf",
            "comment": "Fixed value"
          },
          {
            "identity": "GREENDOT",
            "map": "http://roche.com/fhir/rdc/cdf",
            "comment": "Fixed value"
          },
          {
            "identity": "CDF2FHIR",
            "map": "http://roche.com/fhir/rdc/cdf"
          }
        ]
      },
      {
        "id": "Device.type.coding.code",
        "path": "Device.type.coding.code",
        "min": 1,
        "mapping": [
          {
            "identity": "ACSPIX2FHIR",
            "map": "cdf.dev.im",
            "comment": "Fixed value"
          },
          {
            "identity": "GREENDOT",
            "map": "cdf.dev.im",
            "comment": "Fixed value"
          },
          {
            "identity": "CDF2FHIR",
            "map": "cdf.dev.im"
          }
        ]
      },
      {
        "id": "Device.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Device.type.coding.display",
        "mapping": [
          {
            "identity": "ACSPIX2FHIR",
            "map": "Manual interface",
            "comment": "Fixed value"
          },
          {
            "identity": "GREENDOT",
            "map": "Manual interface",
            "comment": "Fixed value"
          },
          {
            "identity": "CDF2FHIR",
            "map": "Manual interface"
          }
        ]
      },
      {
        "id": "Device.lotNumber",
        "path": "Device.lotNumber",
        "max": "0"
      },
      {
        "id": "Device.manufacturer",
        "path": "Device.manufacturer",
        "short": "Actual options: \"Roche\" and \"mySugr\"",
        "definition": "Actual options: \"Roche\" and \"mySugr\"",
        "comment": "Actual options: \"Roche\" and \"mySugr\"",
        "min": 1,
        "mapping": [
          {
            "identity": "ACSPIX2FHIR",
            "map": "Roche",
            "comment": "Fixed value"
          },
          {
            "identity": "GREENDOT",
            "map": "Roche",
            "comment": "APP.MANUFACTURER = 'Roche'"
          },
          {
            "identity": "CDF2FHIR",
            "map": "Roche"
          }
        ]
      },
      {
        "id": "Device.manufactureDate",
        "path": "Device.manufactureDate",
        "max": "0"
      },
      {
        "id": "Device.expirationDate",
        "path": "Device.expirationDate",
        "max": "0"
      },
      {
        "id": "Device.model",
        "path": "Device.model",
        "min": 1,
        "mapping": [
          {
            "identity": "ACSPIX2FHIR",
            "map": "source",
            "comment": "Its mapped from metadata.source from aws"
          },
          {
            "identity": "GREENDOT",
            "map": "GreenDot",
            "comment": "Fixed value"
          },
          {
            "identity": "GLUCI-CHEK",
            "map": "ACSPIX.SN",
            "comment": "Mapped to ACSPIX tag SN attribute"
          },
          {
            "identity": "CDF2FHIR",
            "map": "source"
          }
        ]
      },
      {
        "id": "Device.version",
        "path": "Device.version",
        "min": 1,
        "mapping": [
          {
            "identity": "ACSPIX2FHIR",
            "map": "version",
            "comment": "Its mapped from metadata.version from aws"
          },
          {
            "identity": "GREENDOT",
            "map": "software version",
            "comment": "packageManager.getPackageInfo(packageName, 0).versionName"
          },
          {
            "identity": "GLUCI-CHEK",
            "map": "ACSPIX.Ver",
            "comment": "Mapped to ACSPIX Tag Ver attribute"
          },
          {
            "identity": "CDF2FHIR",
            "map": "version"
          }
        ]
      },
      {
        "id": "Device.patient",
        "path": "Device.patient",
        "max": "0"
      },
      {
        "id": "Device.owner",
        "path": "Device.owner",
        "max": "0"
      },
      {
        "id": "Device.contact",
        "path": "Device.contact",
        "max": "0"
      },
      {
        "id": "Device.location",
        "path": "Device.location",
        "max": "0"
      },
      {
        "id": "Device.url",
        "path": "Device.url",
        "max": "0"
      },
      {
        "id": "Device.safety",
        "path": "Device.safety",
        "max": "0"
      }
    ]
  }
}