# nl.agroconnect.codelist.defs

> Shared types of the AgroConnect codelists

- Kind: defs
- Authority: codelist.agroconnect.nl
- Lexicon: 1
- Published by [ecrop.agroconnect.nl](https://lexicon.garden/identity/did:plc:nx3sjjz4dgur3lroujerlh3r), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:nx3sjjz4dgur3lroujerlh3r/nl.agroconnect.codelist.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:nx3sjjz4dgur3lroujerlh3r/nl.agroconnect.codelist.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:nx3sjjz4dgur3lroujerlh3r/nl.agroconnect.codelist.defs/analytics)

## #codeType (`nl.agroconnect.codelist.defs#codeType`)

Type: object

Code Type, can be converted to an at-uri by using the reversed first 3 elements of the listId nsid as the at-identifier (authority), so if listId = nl.agroconnect.codelist.fertilizer and content = 7843, the resulting at-uri will be at://codelist.agroconnect.nl/nl.agroconnect.codelist.fertilizer/7843 

### Properties

- `content` (string · record-key, required): Specific code (record key ) from the code list that is referred to by listId.
- `listId` (string · nsid, required): Identifier as namespace identifier (NSID) expression of the standard code list that contains the allowed codes.

## #listEntry (`nl.agroconnect.codelist.defs#listEntry`)

Type: object

### Properties

- `added` (string · datetime, required): Date / time this entry is added tot the list
- `deleted` (string · datetime): Date / time this entry is deleted from the list
- `description` (string)
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `entryId` (string · record-key, required)
- `localized` (array)
  - `items` (object)
- `name` (string, required)
  - Constraints: maxLength: 1000, maxGraphemes: 100

## #scaleFactor (`nl.agroconnect.codelist.defs#scaleFactor`)

Type: integer

Power of 10 exponent to apply to the scaledValue integers value(s) of this object: realValue = value * 10^scaleFactor. E.g. value 125 with scaleFactor -2 is 1.25.

## #scaledValue (`nl.agroconnect.codelist.defs#scaledValue`)

Type: integer

Integer representation of a float combined with ScaleFactor

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "codeType": {
      "description": "Code Type, can be converted to an at-uri by using the reversed first 3 elements of the listId nsid as the at-identifier (authority), so if listId = nl.agroconnect.codelist.fertilizer and content = 7843, the resulting at-uri will be at://codelist.agroconnect.nl/nl.agroconnect.codelist.fertilizer/7843 ",
      "properties": {
        "content": {
          "description": "Specific code (record key ) from the code list that is referred to by listId.",
          "format": "record-key",
          "type": "string"
        },
        "listId": {
          "description": "Identifier as namespace identifier (NSID) expression of the standard code list that contains the allowed codes.",
          "format": "nsid",
          "type": "string"
        }
      },
      "required": [
        "content",
        "listId"
      ],
      "type": "object"
    },
    "listEntry": {
      "properties": {
        "added": {
          "description": "Date / time this entry is added tot the list",
          "format": "datetime",
          "type": "string"
        },
        "deleted": {
          "description": "Date / time this entry is deleted from the list",
          "format": "datetime",
          "type": "string"
        },
        "description": {
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        },
        "entryId": {
          "format": "record-key",
          "type": "string"
        },
        "localized": {
          "items": {
            "properties": {
              "description": {
                "maxGraphemes": 300,
                "maxLength": 3000,
                "type": "string"
              },
              "lang": {
                "format": "language",
                "type": "string"
              },
              "name": {
                "maxGraphemes": 100,
                "maxLength": 1000,
                "type": "string"
              }
            },
            "required": [
              "lang",
              "name"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "name": {
          "maxGraphemes": 100,
          "maxLength": 1000,
          "type": "string"
        }
      },
      "required": [
        "entryId",
        "name",
        "added"
      ],
      "type": "object"
    },
    "scaleFactor": {
      "description": "Power of 10 exponent to apply to the scaledValue integers value(s) of this object: realValue = value * 10^scaleFactor. E.g. value 125 with scaleFactor -2 is 1.25.",
      "type": "integer"
    },
    "scaledValue": {
      "description": "Integer representation of a float combined with ScaleFactor",
      "type": "integer"
    }
  },
  "description": "Shared types of the AgroConnect codelists",
  "id": "nl.agroconnect.codelist.defs",
  "lexicon": 1
}
```
